summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream/xmlstream.py
diff options
context:
space:
mode:
authorNathan Fritz <fritzy@netflint.net>2009-12-22 10:05:53 +0000
committerNathan Fritz <fritzy@netflint.net>2009-12-22 10:05:53 +0000
commit805afa4bc1f44598d786fddc92c5129c62464227 (patch)
tree384291b5441f5cdbcd13b52cdab05062dc97a183 /sleekxmpp/xmlstream/xmlstream.py
parent07018c0afa7485b06424bf6787d242e7ee523d34 (diff)
downloadslixmpp-805afa4bc1f44598d786fddc92c5129c62464227.tar.gz
slixmpp-805afa4bc1f44598d786fddc92c5129c62464227.tar.bz2
slixmpp-805afa4bc1f44598d786fddc92c5129c62464227.tar.xz
slixmpp-805afa4bc1f44598d786fddc92c5129c62464227.zip
* fixed unhandled iqs
Diffstat (limited to 'sleekxmpp/xmlstream/xmlstream.py')
-rw-r--r--sleekxmpp/xmlstream/xmlstream.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py
index 73729031..ee884504 100644
--- a/sleekxmpp/xmlstream/xmlstream.py
+++ b/sleekxmpp/xmlstream/xmlstream.py
@@ -257,14 +257,15 @@ class XMLStream(object):
break
if stanza is None:
stanza = StanzaBase(self, xmlobj)
+ unhandled = True
for handler in self.__handlers:
if handler.match(xmlobj):
handler.prerun(stanza)
self.eventqueue.put(('stanza', handler, stanza))
if handler.checkDelete(): self.__handlers.pop(self.__handlers.index(handler))
- else:
- stanza.unhandled()
-
+ unhandled = False
+ if unhandled:
+ stanza.unhandled()
#loop through handlers and test match
#spawn threads as necessary, call handlers, sending Stanza