mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-04 05:34:41 +03:00
Don't clear pending_ack on disconnect
Upon reconnecting, we must make sure to send all `pending_ack`, or Telegram may resend some responses (e.g. causing duplicated updates).
This commit is contained in:
parent
a59f53d592
commit
ad963fd23e
|
@ -266,8 +266,6 @@ class MTProtoSender:
|
|||
state.future.cancel()
|
||||
|
||||
self._pending_state.clear()
|
||||
self._pending_ack.clear()
|
||||
self._last_ack = None
|
||||
await helpers._cancel(
|
||||
self._log,
|
||||
send_loop_handle=self._send_loop_handle,
|
||||
|
|
Loading…
Reference in New Issue
Block a user