mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-03 14:04:51 +00:00
Skip already processed messages
This commit is contained in:
parent
4019693363
commit
211381a9a8
1 changed files with 4 additions and 1 deletions
|
|
@ -257,7 +257,10 @@ class Session:
|
||||||
|
|
||||||
for i in messages:
|
for i in messages:
|
||||||
if i.seq_no % 2 != 0:
|
if i.seq_no % 2 != 0:
|
||||||
self.pending_acks.add(i.msg_id)
|
if i.msg_id in self.pending_acks:
|
||||||
|
continue
|
||||||
|
else:
|
||||||
|
self.pending_acks.add(i.msg_id)
|
||||||
|
|
||||||
# log.debug("{}".format(type(i.body)))
|
# log.debug("{}".format(type(i.body)))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue