mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-10 19:46:36 +03:00
Fix setting logout result was not checking for future cancellation
This commit is contained in:
parent
292a36f760
commit
4c771bf2af
|
@ -779,7 +779,8 @@ class MTProtoSender:
|
|||
state = self._pending_state.get(msg_id)
|
||||
if state and isinstance(state.request, LogOutRequest):
|
||||
del self._pending_state[msg_id]
|
||||
state.future.set_result(True)
|
||||
if not state.future.cancelled():
|
||||
state.future.set_result(True)
|
||||
|
||||
async def _handle_future_salts(self, message):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user