From cc5719c89d6feba9feb7ad5b542b1367fee1aece Mon Sep 17 00:00:00 2001 From: Dimitur Kirov Date: Mon, 18 Sep 2006 08:39:04 +0000 Subject: [PATCH] stop listener when we go offline --- src/common/zeroconf/connection_zeroconf.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/zeroconf/connection_zeroconf.py b/src/common/zeroconf/connection_zeroconf.py index 8ab243490..537c23a74 100644 --- a/src/common/zeroconf/connection_zeroconf.py +++ b/src/common/zeroconf/connection_zeroconf.py @@ -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