Skip to content

Commit

Permalink
Fix ReadThread not starting on reconnect if already authorized
Browse files Browse the repository at this point in the history
  • Loading branch information
Lonami committed Oct 18, 2017
1 parent 5a1074d commit 87dc476
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions telethon/telegram_bare_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ def connect(self, _exported_auth=None, _sync_updates=True, _cdn=False):
self._set_connected_and_authorized()
except UnauthorizedError:
self._authorized = False
elif self._authorized:
self._set_connected_and_authorized()

return True

Expand Down

0 comments on commit 87dc476

Please sign in to comment.