diff options
author | mathieui <mathieui@mathieui.net> | 2016-10-05 20:18:51 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2016-10-05 20:19:07 +0200 |
commit | a0a37c19ffd5ae530341e7e306413a0a6c95fab2 (patch) | |
tree | 6352dbe5508b0abeb983a646f48aba585070eed8 /slixmpp/xmlstream/xmlstream.py | |
parent | 1b5fe57a5eb158d34d70130ba69a5e5a5fd850e4 (diff) | |
download | slixmpp-a0a37c19ffd5ae530341e7e306413a0a6c95fab2.tar.gz slixmpp-a0a37c19ffd5ae530341e7e306413a0a6c95fab2.tar.bz2 slixmpp-a0a37c19ffd5ae530341e7e306413a0a6c95fab2.tar.xz slixmpp-a0a37c19ffd5ae530341e7e306413a0a6c95fab2.zip |
Remove monkeypatching hack on the event loop
This allowed us to schedule events in-order later in the event loop, but
was detrimental to using other event loops and debugging.
Diffstat (limited to 'slixmpp/xmlstream/xmlstream.py')
-rw-r--r-- | slixmpp/xmlstream/xmlstream.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/slixmpp/xmlstream/xmlstream.py b/slixmpp/xmlstream/xmlstream.py index c491746d..a691d34c 100644 --- a/slixmpp/xmlstream/xmlstream.py +++ b/slixmpp/xmlstream/xmlstream.py @@ -380,7 +380,7 @@ class XMLStream(asyncio.BaseProtocol): elif self.xml_depth == 1: # A stanza is an XML element that is a direct child of # the root element, hence the check of depth == 1 - self.loop.idle_call(functools.partial(self.__spawn_event, xml)) + self._spawn_event(xml) if self.xml_root is not None: # Keep the root element empty of children to # save on memory use. @@ -893,7 +893,7 @@ class XMLStream(asyncio.BaseProtocol): stanza['lang'] = self.peer_default_lang return stanza - def __spawn_event(self, xml): + def _spawn_event(self, xml): """ Analyze incoming XML stanzas and convert them into stanza objects if applicable and queue stream events to be processed |