prevent traceback when removing idle object. fixes #4391
This commit is contained in:
parent
14140077ad
commit
3d7ef26ddb
|
@ -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])
|
||||
|
||||
|
|
Loading…
Reference in New Issue