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 raise common.xmpp.NodeProcessed
def _VersionCB(self, con, iq_obj): def _VersionCB(self, con, iq_obj):
if not self.connection:
return
gajim.log.debug('VersionCB') gajim.log.debug('VersionCB')
iq_obj = iq_obj.buildReply('result') iq_obj = iq_obj.buildReply('result')
qp = iq_obj.getTag('query') qp = iq_obj.getTag('query')