removed unnecessary flags and arguments from disconnect method

This commit is contained in:
Thom Nichols 2010-06-02 14:17:36 -04:00
parent 3a2f989c5e
commit 8227affd7f

View file

@ -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