TelegramClient: Fix log_out() returning nothing on success

This commit is contained in:
Dmitry D. Chernov 2017-05-11 15:46:27 +10:00
parent 048bc81b74
commit 445e73e0d1

View File

@ -268,6 +268,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