mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-09 16:10:51 +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()
|
state.future.cancel()
|
||||||
|
|
||||||
self._pending_state.clear()
|
self._pending_state.clear()
|
||||||
self._pending_ack.clear()
|
|
||||||
self._last_ack = None
|
|
||||||
await helpers._cancel(
|
await helpers._cancel(
|
||||||
self._log,
|
self._log,
|
||||||
send_loop_handle=self._send_loop_handle,
|
send_loop_handle=self._send_loop_handle,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user