TelegramClient: Fix log_out() returning nothing on success

This commit is contained in:
Dmitry D. Chernov 2017-05-11 15:46:27 +10:00 committed by Lonami
parent d0284c2bd3
commit b7ed6d9ec1

View File

@ -270,6 +270,7 @@ class TelegramClient:
return False
self.session = None
return True
except:
# Something happened when logging out, restore the state back
self.sender.logging_out = False