Fix ReadThread not starting on reconnect if already authorized

This commit is contained in:
Lonami Exo 2017-10-18 14:45:08 +02:00
parent 5a1074dc7c
commit 87dc476dae

View File

@ -229,6 +229,8 @@ class TelegramBareClient:
self._set_connected_and_authorized() self._set_connected_and_authorized()
except UnauthorizedError: except UnauthorizedError:
self._authorized = False self._authorized = False
elif self._authorized:
self._set_connected_and_authorized()
return True return True