From 0a1356e00664463427ce0affcd74883637bb0cf0 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 28 Sep 2010 22:38:42 +0200 Subject: [PATCH] stop handling presences when we close a groupchat control. Fixes #5949 --- src/groupchat_control.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/groupchat_control.py b/src/groupchat_control.py index f5295bb27..9aa7453c1 100644 --- a/src/groupchat_control.py +++ b/src/groupchat_control.py @@ -1684,6 +1684,9 @@ class GroupchatControl(ChatControlBase): # Preventing autorejoin from being activated self.autorejoin = False + gajim.ged.remove_event_handler('gc-presence-received', ged.GUI1, + self._nec_gc_presence_received) + if self.room_jid in gajim.gc_connected[self.account] and \ gajim.gc_connected[self.account][self.room_jid]: # Tell connection to note the date we disconnect to avoid duplicate