stop listener when we go offline
This commit is contained in:
parent
1a325833c3
commit
cc5719c89d
|
@ -216,6 +216,7 @@ class ConnectionZeroconf(ConnectionHandlersZeroconf):
|
||||||
if self.connection:
|
if self.connection:
|
||||||
# make sure previous connection is completely closed
|
# make sure previous connection is completely closed
|
||||||
self.last_connection = None
|
self.last_connection = None
|
||||||
|
self.connection.listener.disconnect()
|
||||||
self.connection = None
|
self.connection = None
|
||||||
# stop calling the timeout
|
# stop calling the timeout
|
||||||
self.call_resolve_timeout = False
|
self.call_resolve_timeout = False
|
||||||
|
|
Loading…
Reference in New Issue