fix disconnection of client_zeroconf. Fixes #5049

This commit is contained in:
Yann Leboulanger 2009-05-29 08:59:08 +02:00
parent 8a70c5a679
commit 5a72c9b3ac
1 changed files with 2 additions and 1 deletions

View File

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