diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py
index cbe85181a79f02f3a4146ae912cdc26f77f1d548..79c00ada8fe18724a21a217258e67f23038f2b11 100644
--- a/src/common/connection_handlers.py
+++ b/src/common/connection_handlers.py
@@ -1474,6 +1474,8 @@ def _rosterSetCB(self, con, iq_obj):
 		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 @@ def _register_handlers(self, con, con_type):
 		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: