mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-26 03:13:45 +03:00
Fix lost requests on disconnect need_confirmation.clear
The pending acks shouldn't be cleared, in case of a reconnection these would be pretty common. E.g. disconnect(), connect(), invoke, repeat.
This commit is contained in:
parent
eb22bce2d9
commit
ee51aa7073
|
@ -79,7 +79,6 @@ class MtProtoSender:
|
|||
"""Disconnects from the server."""
|
||||
__log__.info('Disconnecting MtProtoSender...')
|
||||
self.connection.close()
|
||||
self._need_confirmation.clear()
|
||||
self._clear_all_pending()
|
||||
|
||||
# region Send and receive
|
||||
|
|
Loading…
Reference in New Issue
Block a user