Merge branch 'develop' of github.com:fritzy/SleekXMPP into develop

This commit is contained in:
Lance Stout 2010-10-06 14:06:02 -04:00
commit d0ccbf6b7a

View file

@ -493,7 +493,10 @@ class XMLStream(object):
# processed in the queue. # processed in the queue.
with self.__event_handlers_lock: with self.__event_handlers_lock:
handler_index = self.__event_handlers[name].index(handler) 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, def schedule(self, name, seconds, callback, args=None,
kwargs=None, repeat=False): kwargs=None, repeat=False):