summaryrefslogtreecommitdiff
path: root/sleekxmpp/__init__.py
diff options
context:
space:
mode:
authorTom Nichols <tmnichols@gmail.com>2010-07-02 16:46:34 -0400
committerTom Nichols <tmnichols@gmail.com>2010-07-02 16:46:34 -0400
commit6e93982fdf9c66673ad298148beaefc725f9440c (patch)
tree8561881e2f2d337426e19b9d0e7af2821ca10714 /sleekxmpp/__init__.py
parent33602f232c0f9e8895cf0f7589d1046f616b6206 (diff)
downloadslixmpp-6e93982fdf9c66673ad298148beaefc725f9440c.tar.gz
slixmpp-6e93982fdf9c66673ad298148beaefc725f9440c.tar.bz2
slixmpp-6e93982fdf9c66673ad298148beaefc725f9440c.tar.xz
slixmpp-6e93982fdf9c66673ad298148beaefc725f9440c.zip
trying to get xmlstream to reconnect on stream failure
Diffstat (limited to 'sleekxmpp/__init__.py')
-rw-r--r--sleekxmpp/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sleekxmpp/__init__.py b/sleekxmpp/__init__.py
index 3379e45d..3b2b5e0f 100644
--- a/sleekxmpp/__init__.py
+++ b/sleekxmpp/__init__.py
@@ -159,11 +159,11 @@ class ClientXMPP(basexmpp, XMLStream):
def reconnect(self):
self.disconnect(reconnect=True)
- def disconnect(self, reconnect=False):
+ def disconnect(self, reconnect=False, error=False):
self.event("disconnected")
self.authenticated = False
self.sessionstarted = False
- XMLStream.disconnect(self, reconnect)
+ XMLStream.disconnect(self, reconnect, error)
def registerFeature(self, mask, pointer, breaker = False):
"""Register a stream feature."""