Do not handle messages with a pending ack
This commit is contained in:
parent
333d22afca
commit
6f9e77bc2c
@ -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 New Issue
Block a user