prevent a traceback. fixes #4169

This commit is contained in:
Yann Leboulanger 2008-08-01 10:27:38 +00:00
parent b9fc3556c7
commit 409a1c315a
1 changed files with 3 additions and 1 deletions

View File

@ -1474,6 +1474,8 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
raise common.xmpp.NodeProcessed
def _VersionCB(self, con, iq_obj):
if not self.connection:
return
gajim.log.debug('VersionCB')
iq_obj = iq_obj.buildReply('result')
qp = iq_obj.getTag('query')
@ -2448,4 +2450,4 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
con.RegisterHandler('message', self._StanzaArrivedCB)
con.RegisterHandler('unknown', self._StreamCB, 'urn:ietf:params:xml:ns:xmpp-streams', xmlns='http://etherx.jabber.org/streams')
# vim: se ts=3:
# vim: se ts=3: