mirror of
https://github.com/pyMC-dev/pyMC_Repeater.git
synced 2026-06-11 00:34:46 +02:00
suppress duplicate packets in processing logic
This commit is contained in:
@@ -541,10 +541,17 @@ class RepeaterHandler(BaseHandler):
|
||||
packet.drop_reason = "Direct: not for us"
|
||||
return None
|
||||
|
||||
# Suppress duplicates
|
||||
if self.is_duplicate(packet):
|
||||
packet.drop_reason = "Duplicate"
|
||||
return None
|
||||
|
||||
original_path = list(packet.path)
|
||||
packet.path = bytearray(packet.path[1:])
|
||||
packet.path_len = len(packet.path)
|
||||
|
||||
self.mark_seen(packet)
|
||||
|
||||
return packet
|
||||
|
||||
@staticmethod
|
||||
|
||||
Reference in New Issue
Block a user