fix traceback with zeroconf under windows. Fixes #5652

This commit is contained in:
Yann Leboulanger 2010-03-19 08:27:35 +01:00
parent 9dedf990bd
commit 103a6ccd51
1 changed files with 3 additions and 3 deletions

View File

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