deal with deleting handlers that are no longer there
This commit is contained in:
parent
a7410f2146
commit
3ffa09ba7c
1 changed files with 4 additions and 1 deletions
|
@ -490,7 +490,10 @@ class XMLStream(object):
|
|||
# processed in the queue.
|
||||
with self.__event_handlers_lock:
|
||||
handler_index = self.__event_handlers[name].index(handler)
|
||||
try:
|
||||
self.__event_handlers[name].pop(handler_index)
|
||||
except:
|
||||
pass
|
||||
|
||||
def schedule(self, name, seconds, callback, args=None,
|
||||
kwargs=None, repeat=False):
|
||||
|
|
Loading…
Reference in a new issue