changeset 2127559a62b2 in /home/hg/repos/gajim

author: Yann Leboulanger <aste...@lagaule.org>
branches: gajim_0.16
details:http://hg.gajim.org/gajim?cmd=changeset;node=2127559a62b2
description: prevent traceback

diffstat:

 src/common/connection.py |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (14 lines):

diff -r 7aa8b24aa913 -r 2127559a62b2 src/common/connection.py
--- a/src/common/connection.py  Mon Jul 27 22:58:47 2015 +0200
+++ b/src/common/connection.py  Tue Jul 28 20:19:19 2015 +0200
@@ -913,7 +913,9 @@
                 self.sm.enabled = False
                 gajim.nec.push_incoming_event(OurShowEvent(None, conn=self,
                     show='error'))
-            
self.connection.UnregisterDisconnectHandler(self._disconnectedReconnCB)
+            if self.connection:
+                self.connection.UnregisterDisconnectHandler(
+                    self._disconnectedReconnCB)
             self.disconnect()
             if gajim.config.get_per('accounts', self.name, 'autoreconnect'):
                 self.connected = -1
_______________________________________________
Commits mailing list
Commits@gajim.org
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to