Skip already processed messages

This commit is contained in:
Dan 2017-12-28 13:06:26 +01:00
parent 4019693363
commit 211381a9a8

View File

@ -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)))