From 103a6ccd5107bddaced7c446997983301b7ac45c Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 19 Mar 2010 08:27:35 +0100 Subject: [PATCH] fix traceback with zeroconf under windows. Fixes #5652 --- src/common/zeroconf/zeroconf_bonjour.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/zeroconf/zeroconf_bonjour.py b/src/common/zeroconf/zeroconf_bonjour.py index 58bdfcca3..f19623236 100644 --- a/src/common/zeroconf/zeroconf_bonjour.py +++ b/src/common/zeroconf/zeroconf_bonjour.py @@ -274,9 +274,9 @@ class Zeroconf: def disconnect(self): if self.connected: self.connected = False - self.browse_sdRef.close() - self.remove_announce() - + if hasattr(self, 'browse_sdRef'): + self.browse_sdRef.close() + self.remove_announce() def browse_domain(self, domain=None): gajim.log.debug('starting to browse')