visibly disconnect when loosing connection. Fixes #7091
This commit is contained in:
parent
241acdd06b
commit
e7644e5ad3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue