mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-27 19:19:54 +00:00
Simplification when removing a deletable handler.
This commit is contained in:
parent
34f6195ca5
commit
8b5511c7ec
1 changed files with 1 additions and 1 deletions
|
@ -845,7 +845,7 @@ class XMLStream(object):
|
|||
self.event_queue.put(('stanza', handler, stanza_copy))
|
||||
try:
|
||||
if handler.check_delete():
|
||||
self.__handlers.pop(self.__handlers.index(handler))
|
||||
self.__handlers.remove(handler)
|
||||
except:
|
||||
pass # not thread safe
|
||||
unhandled = False
|
||||
|
|
Loading…
Reference in a new issue