Commit cc5719c8 authored by dkirov's avatar dkirov

stop listener when we go offline

parent 1a325833
......@@ -216,6 +216,7 @@ class ConnectionZeroconf(ConnectionHandlersZeroconf):
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