From 3d7ef26ddbf8b02ce82c55877888507346bb929c Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sun, 2 Nov 2008 16:28:29 +0000 Subject: [PATCH] prevent traceback when removing idle object. fixes #4391 --- src/gajim.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gajim.py b/src/gajim.py index f1e845098..6ac335ab2 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -452,6 +452,8 @@ class GlibIdleQueue(idlequeue.IdleQueue): ''' this method is called when we unplug a new idle object. Stop listening for events from fd ''' + if not fd in self.events: + return gobject.source_remove(self.events[fd]) del(self.events[fd])