summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThom Nichols <tmnichols@gmail.com>2010-06-02 14:17:36 -0400
committerThom Nichols <tmnichols@gmail.com>2010-06-02 14:17:36 -0400
commit8227affd7f30a5fb8c6b215d00e42bc15df49d36 (patch)
treef856841c80a9edcc8224df9e45650e2188657528
parent3a2f989c5e982529bbad80bff4ef67eacb0e8eac (diff)
downloadslixmpp-8227affd7f30a5fb8c6b215d00e42bc15df49d36.tar.gz
slixmpp-8227affd7f30a5fb8c6b215d00e42bc15df49d36.tar.bz2
slixmpp-8227affd7f30a5fb8c6b215d00e42bc15df49d36.tar.xz
slixmpp-8227affd7f30a5fb8c6b215d00e42bc15df49d36.zip
removed unnecessary flags and arguments from disconnect method
-rw-r--r--sleekxmpp/__init__.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/sleekxmpp/__init__.py b/sleekxmpp/__init__.py
index 6995f7c9..56ba45ed 100644
--- a/sleekxmpp/__init__.py
+++ b/sleekxmpp/__init__.py
@@ -146,13 +146,9 @@ class ClientXMPP(basexmpp, XMLStream):
# overriding reconnect and disconnect so that we can get some events
# should events be part of or required by xmlstream? Maybe that would be cleaner
def reconnect(self):
- logging.info("Reconnecting")
- self.event("disconnected")
- self.authenticated = False
- self.sessionstarted = False
- XMLStream.reconnect(self)
+ self.disconnect(reconnect=True)
- def disconnect(self, init=True, close=False, reconnect=False):
+ def disconnect(self, reconnect=False):
self.event("disconnected")
self.authenticated = False
self.sessionstarted = False