From 5a72c9b3ac9ba7c185a433728291e5f58307cac0 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 29 May 2009 08:59:08 +0200 Subject: [PATCH] fix disconnection of client_zeroconf. Fixes #5049 --- src/common/zeroconf/client_zeroconf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/zeroconf/client_zeroconf.py b/src/common/zeroconf/client_zeroconf.py index 7b3459cde..ee4d8061d 100644 --- a/src/common/zeroconf/client_zeroconf.py +++ b/src/common/zeroconf/client_zeroconf.py @@ -96,8 +96,9 @@ class ZeroconfListener(IdleObject): break P2PClient(sock[0], ipaddr, sock[1][1], self.conn_holder, [], from_jid) - def disconnect(self): + def disconnect(self, message=''): ''' free all resources, we are not listening anymore ''' + log.info('Disconnecting ZeroconfListener: %s' % message) gajim.idlequeue.remove_timeout(self.fd) gajim.idlequeue.unplug_idle(self.fd) self.fd = -1