visibly disconnect when loosing connection. Fixes #7091

This commit is contained in:
Jefry Lagrange 2012-02-08 22:06:29 -05:00
parent 241acdd06b
commit e7644e5ad3
1 changed files with 3 additions and 0 deletions

View File

@ -810,6 +810,9 @@ class Connection(CommonConnection, ConnectionHandlers):
if not (self.sm and self.sm.resumption): if not (self.sm and self.sm.resumption):
gajim.nec.push_incoming_event(OurShowEvent(None, conn=self, gajim.nec.push_incoming_event(OurShowEvent(None, conn=self,
show='offline')) show='offline'))
else:
gajim.nec.push_incoming_event(OurShowEvent(None, conn=self,
show='error'))
self.disconnect() self.disconnect()
if gajim.config.get_per('accounts', self.name, 'autoreconnect'): if gajim.config.get_per('accounts', self.name, 'autoreconnect'):
self.connected = -1 self.connected = -1