From 44e2bd02470c1396b4cd666646c1b8780f0754fe Mon Sep 17 00:00:00 2001 From: Dimitur Kirov Date: Tue, 19 Sep 2006 08:58:14 +0000 Subject: [PATCH] fix TB opn application exit --- src/common/zeroconf/connection_zeroconf.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/common/zeroconf/connection_zeroconf.py b/src/common/zeroconf/connection_zeroconf.py index 537c23a74..4a45c462f 100644 --- a/src/common/zeroconf/connection_zeroconf.py +++ b/src/common/zeroconf/connection_zeroconf.py @@ -214,9 +214,8 @@ class ConnectionZeroconf(ConnectionHandlersZeroconf): self.connected = 0 self.time_to_reconnect = None if self.connection: - # make sure previous connection is completely closed - self.last_connection = None - self.connection.listener.disconnect() + if self.connection.listener: + self.connection.listener.disconnect() self.connection = None # stop calling the timeout self.call_resolve_timeout = False