Commit 94b058cd authored by Philipp Hörist's avatar Philipp Hörist

Add account-disconnected event

This is a dedicated event so we dont have to use the our-show event
parent c230f5c4
...@@ -595,6 +595,8 @@ class Connection(CommonConnection, ConnectionHandlers): ...@@ -595,6 +595,8 @@ class Connection(CommonConnection, ConnectionHandlers):
self.get_module('Bytestream').remove_all_transfers() self.get_module('Bytestream').remove_all_transfers()
self._unregister_new_handlers(self.connection) self._unregister_new_handlers(self.connection)
self.connection = None self.connection = None
app.nec.push_incoming_event(NetworkEvent('account-disconnected',
account=self.name))
def _set_reconnect_timer(self): def _set_reconnect_timer(self):
self.connected = -1 self.connected = -1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment