summaryrefslogtreecommitdiff
path: root/slixmpp/basexmpp.py
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2014-08-16 22:37:29 +0200
committerFlorent Le Coz <louiz@louiz.org>2014-09-01 02:47:08 +0200
commit6175cbcd99f917b08646d130770a132458056249 (patch)
tree7aa51df981039fdfec06c141feb5b61888a4e8f9 /slixmpp/basexmpp.py
parent476d76a53301f9da2ac7efa094e209b0607adfdc (diff)
downloadslixmpp-6175cbcd99f917b08646d130770a132458056249.tar.gz
slixmpp-6175cbcd99f917b08646d130770a132458056249.tar.bz2
slixmpp-6175cbcd99f917b08646d130770a132458056249.tar.xz
slixmpp-6175cbcd99f917b08646d130770a132458056249.zip
Reintroduce XMLStream.process, making it run the asyncio event loop.
Diffstat (limited to 'slixmpp/basexmpp.py')
-rw-r--r--slixmpp/basexmpp.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/slixmpp/basexmpp.py b/slixmpp/basexmpp.py
index b15354c9..a3aa557a 100644
--- a/slixmpp/basexmpp.py
+++ b/slixmpp/basexmpp.py
@@ -203,6 +203,10 @@ class BaseXMPP(XMLStream):
log.warning('Legacy XMPP 0.9 protocol detected.')
self.event('legacy_protocol')
+ def process(self, timeout=None):
+ self.init_plugins()
+ XMLStream.process(self, timeout)
+
def init_plugins(self):
for name in self.plugin:
if not hasattr(self.plugin[name], 'post_inited'):