Fixed a bug with session reconnection

This commit is contained in:
Manuel Cortez 2016-08-04 08:06:39 -05:00
parent 817d7bd6bb
commit 143ad70073

View File

@ -353,7 +353,7 @@ class Session(object):
self.logged = False self.logged = False
self.twitter = twitter.twitter.twitter() self.twitter = twitter.twitter.twitter()
self.login(False) self.login(False)
# pub.sendMessage("restart_streams", session=self.session_id) pub.sendMessage("restart_streams", session=self.session_id)
if self.reconnection_function_active == True: return if self.reconnection_function_active == True: return
self.reconnection_function_active = True self.reconnection_function_active = True
if not hasattr(self, "main_stream"): if not hasattr(self, "main_stream"):