mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-25 10:53:44 +03:00
TelegramClient: Fix log_out() returning nothing on success
This commit is contained in:
parent
d0284c2bd3
commit
b7ed6d9ec1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user