mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-30 19:19:55 +00:00
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)
|
||||
self.__event_handlers[name].pop(handler_index)
|
||||
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