summaryrefslogtreecommitdiff
path: root/slixmpp/basexmpp.py
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2015-02-28 14:04:42 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2015-04-04 16:48:30 +0200
commit632b7b4afe290d533189eff27482a43aec816076 (patch)
treecc9013c3647956f53153258b0a7ceeba2ad8737f /slixmpp/basexmpp.py
parent0ef3fa2703933477e7b3579482cb2f90f639d3ca (diff)
downloadslixmpp-632b7b4afe290d533189eff27482a43aec816076.tar.gz
slixmpp-632b7b4afe290d533189eff27482a43aec816076.tar.bz2
slixmpp-632b7b4afe290d533189eff27482a43aec816076.tar.xz
slixmpp-632b7b4afe290d533189eff27482a43aec816076.zip
XMLStream: add a forever parameter to process(), defaulting to True, to select whether we want to stop the event loop after a disconnection
Diffstat (limited to 'slixmpp/basexmpp.py')
-rw-r--r--slixmpp/basexmpp.py4
1 files changed, 2 insertions, 2 deletions
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: