prevent a traceback when we disconnect a zeroconf socket wil a message attribute. Fixes #5049

This commit is contained in:
Yann Leboulanger 2009-11-12 21:42:20 +01:00
parent ee5eb8b546
commit ae9f7ca410
1 changed files with 1 additions and 1 deletions

View File

@ -494,7 +494,7 @@ class P2PConnection(IdleObject, PlugIn):
self.disconnect()
return True
def disconnect(self):
def disconnect(self, message=''):
''' Closes the socket. '''
gajim.idlequeue.remove_timeout(self.fd)
gajim.idlequeue.unplug_idle(self.fd)