Skip to content
Snippets Groups Projects
Commit cc5719c8 authored by dkirov's avatar dkirov
Browse files

stop listener when we go offline

parent 1a325833
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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