stop listener when we go offline

This commit is contained in:
Dimitur Kirov 2006-09-18 08:39:04 +00:00
parent 1a325833c3
commit cc5719c89d
1 changed files with 1 additions and 0 deletions

View File

@ -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