prevent a traceback when we disconnect a zeroconf socket wil a message attribute. Fixes #5049
This commit is contained in:
parent
ee5eb8b546
commit
ae9f7ca410
|
@ -494,7 +494,7 @@ class P2PConnection(IdleObject, PlugIn):
|
||||||
self.disconnect()
|
self.disconnect()
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def disconnect(self):
|
def disconnect(self, message=''):
|
||||||
''' Closes the socket. '''
|
''' Closes the socket. '''
|
||||||
gajim.idlequeue.remove_timeout(self.fd)
|
gajim.idlequeue.remove_timeout(self.fd)
|
||||||
gajim.idlequeue.unplug_idle(self.fd)
|
gajim.idlequeue.unplug_idle(self.fd)
|
||||||
|
|
Loading…
Reference in New Issue