mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-10 10:49:39 +00: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:
@@ -79,7 +79,6 @@ class MtProtoSender:
|
|||||||
"""Disconnects from the server."""
|
"""Disconnects from the server."""
|
||||||
__log__.info('Disconnecting MtProtoSender...')
|
__log__.info('Disconnecting MtProtoSender...')
|
||||||
self.connection.close()
|
self.connection.close()
|
||||||
self._need_confirmation.clear()
|
|
||||||
self._clear_all_pending()
|
self._clear_all_pending()
|
||||||
|
|
||||||
# region Send and receive
|
# region Send and receive
|
||||||
|
Reference in New Issue
Block a user