From 632b7b4afe290d533189eff27482a43aec816076 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sat, 28 Feb 2015 14:04:42 +0100 Subject: XMLStream: add a forever parameter to process(), defaulting to True, to select whether we want to stop the event loop after a disconnection --- slixmpp/basexmpp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'slixmpp/basexmpp.py') diff --git a/slixmpp/basexmpp.py b/slixmpp/basexmpp.py index f59c5c00..8419a676 100644 --- a/slixmpp/basexmpp.py +++ b/slixmpp/basexmpp.py @@ -203,9 +203,9 @@ class BaseXMPP(XMLStream): log.warning('Legacy XMPP 0.9 protocol detected.') self.event('legacy_protocol') - def process(self, timeout=None): + def process(self, *, forever=True, timeout=None): self.init_plugins() - XMLStream.process(self, timeout) + XMLStream.process(self, forever=forever, timeout=timeout) def init_plugins(self): for name in self.plugin: -- cgit v1.2.3