Skip to content
Snippets Groups Projects
Commit 5977c91e authored by zimio's avatar zimio
Browse files

visibly disconnect when loosing connection. Fixes #7091

parent 0aa8d8a8
No related branches found
No related tags found
No related merge requests found
......@@ -821,6 +821,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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment