summaryrefslogtreecommitdiff
path: root/sleekxmpp
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2011-02-13 16:40:04 -0500
committerLance Stout <lancestout@gmail.com>2011-02-13 16:40:04 -0500
commit8b5511c7ec036aef6a243c3c5e801cdaa7a4863a (patch)
treeba38bdbf33e588b055f91c0e8adefc29da65b109 /sleekxmpp
parent34f6195ca5a042ac61aa20af0b339a6654e2ffdd (diff)
downloadslixmpp-8b5511c7ec036aef6a243c3c5e801cdaa7a4863a.tar.gz
slixmpp-8b5511c7ec036aef6a243c3c5e801cdaa7a4863a.tar.bz2
slixmpp-8b5511c7ec036aef6a243c3c5e801cdaa7a4863a.tar.xz
slixmpp-8b5511c7ec036aef6a243c3c5e801cdaa7a4863a.zip
Simplification when removing a deletable handler.
Diffstat (limited to 'sleekxmpp')
-rw-r--r--sleekxmpp/xmlstream/xmlstream.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py
index 1cd23fba..560b80a0 100644
--- a/sleekxmpp/xmlstream/xmlstream.py
+++ b/sleekxmpp/xmlstream/xmlstream.py
@@ -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