Commit ac5bc7e9 authored by Yann Leboulanger's avatar Yann Leboulanger

fix disconnection of client_zeroconf. Fixes #5049

parent b481b2d3
......@@ -97,8 +97,9 @@ def pollin(self):
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment