Skip to content

Commit da16c4e

Browse files
committed
bridge.py fixed check for unordered packet (now works when index wraps)
1 parent 6b3d7eb commit da16c4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linux/bridge/packet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def process(self):
137137
self.index = ord(index)
138138

139139
# Check for out-of-order packets
140-
if self.index > ord(index):
140+
if self.index != ord(index):
141141
if not self.last_response is None:
142142
send(ord(index), self.last_response)
143143
return True

0 commit comments

Comments
 (0)