mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-07 07:24:51 +00:00
Do not handle messages with a pending ack
This commit is contained in:
parent
333d22afca
commit
6f9e77bc2c
1 changed files with 3 additions and 1 deletions
|
|
@ -208,7 +208,9 @@ class Session:
|
||||||
MsgId.set_server_time(msg.msg_id / (2 ** 32))
|
MsgId.set_server_time(msg.msg_id / (2 ** 32))
|
||||||
|
|
||||||
if msg.seq_no % 2 != 0:
|
if msg.seq_no % 2 != 0:
|
||||||
if msg.msg_id not in self.pending_acks:
|
if msg.msg_id in self.pending_acks:
|
||||||
|
continue
|
||||||
|
else:
|
||||||
self.pending_acks.add(msg.msg_id)
|
self.pending_acks.add(msg.msg_id)
|
||||||
|
|
||||||
if isinstance(msg.body, (raw.types.MsgDetailedInfo, raw.types.MsgNewDetailedInfo)):
|
if isinstance(msg.body, (raw.types.MsgDetailedInfo, raw.types.MsgNewDetailedInfo)):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue