From e7644e5ad335bf48685eeb8fb2dba8d9486def60 Mon Sep 17 00:00:00 2001 From: Jefry Lagrange Date: Wed, 8 Feb 2012 22:06:29 -0500 Subject: [PATCH] visibly disconnect when loosing connection. Fixes #7091 --- src/common/connection.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/connection.py b/src/common/connection.py index d67a8b0cf..f3627cfae 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -810,6 +810,9 @@ class Connection(CommonConnection, ConnectionHandlers): if not (self.sm and self.sm.resumption): gajim.nec.push_incoming_event(OurShowEvent(None, conn=self, show='offline')) + else: + gajim.nec.push_incoming_event(OurShowEvent(None, conn=self, + show='error')) self.disconnect() if gajim.config.get_per('accounts', self.name, 'autoreconnect'): self.connected = -1