mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-23 01:46:35 +03:00
Fix ack requests removing pending requests when they shouldn't
This commit is contained in:
parent
db6fd4bdc2
commit
f8f389c850
|
@ -204,13 +204,13 @@ class MtProtoSender:
|
||||||
# msgs_ack, it may handle the request we wanted
|
# msgs_ack, it may handle the request we wanted
|
||||||
if code == 0x62d6b459:
|
if code == 0x62d6b459:
|
||||||
ack = reader.tgread_object()
|
ack = reader.tgread_object()
|
||||||
for msg_id in ack.msg_ids:
|
for r in self._pending_receive:
|
||||||
r = self._pop_request(msg_id)
|
if r.request_msg_id in ack.msg_ids:
|
||||||
if r:
|
|
||||||
self._logger.debug('Ack found for the a request')
|
self._logger.debug('Ack found for the a request')
|
||||||
|
|
||||||
if self.logging_out:
|
if self.logging_out:
|
||||||
self._logger.debug('Message ack confirmed a request')
|
self._logger.debug('Message ack confirmed a request')
|
||||||
|
self._pending_receive.remove(r)
|
||||||
r.confirm_received.set()
|
r.confirm_received.set()
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in New Issue
Block a user