From ae9f7ca4104f3c28ada49602689dcbcb4180b099 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger <asterix@lagaule.org> Date: Thu, 12 Nov 2009 21:42:20 +0100 Subject: [PATCH] prevent a traceback when we disconnect a zeroconf socket wil a message attribute. Fixes #5049 --- src/common/zeroconf/client_zeroconf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/zeroconf/client_zeroconf.py b/src/common/zeroconf/client_zeroconf.py index d9158c5684..730eb3ec34 100644 --- a/src/common/zeroconf/client_zeroconf.py +++ b/src/common/zeroconf/client_zeroconf.py @@ -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) -- GitLab