Commit cc5719c8 authored by dkirov's avatar dkirov
Browse files

stop listener when we go offline

parent 1a325833
......@@ -216,6 +216,7 @@ def disconnect(self, on_purpose = False):
if self.connection:
# make sure previous connection is completely closed
self.last_connection = None
self.connection.listener.disconnect()
self.connection = None
# stop calling the timeout
self.call_resolve_timeout = False
......
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