prevent traceback when removing idle object. fixes #4391

This commit is contained in:
Yann Leboulanger 2008-11-02 16:28:29 +00:00
parent 14140077ad
commit 3d7ef26ddb
1 changed files with 2 additions and 0 deletions

View File

@ -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])