Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2008-08-01 14:27:38 +0400
committerYann Leboulanger <asterix@lagaule.org>2008-08-01 14:27:38 +0400
commit409a1c315af4b1f375e18c14245458f3e2424f6a (patch)
treeaedc0bc84f594d5cff1fa3d711939756f3f8ff56 /src
parentb9fc3556c74d020dfa087f7281008f17077b3acf (diff)
prevent a traceback. fixes #4169
Diffstat (limited to 'src')
-rw-r--r--src/common/connection_handlers.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py
index cbe85181a..79c00ada8 100644
--- a/src/common/connection_handlers.py
+++ b/src/common/connection_handlers.py
@@ -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: \ No newline at end of file
+# vim: se ts=3: