mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-12-18 11:06:20 +00:00
removed unnecessary flags and arguments from disconnect method
This commit is contained in:
parent
3a2f989c5e
commit
8227affd7f
1 changed files with 2 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue