fix seq rollover

This commit is contained in:
Simon 2020-12-21 17:16:50 +00:00
parent 5e24fea463
commit b782748944
1 changed files with 1 additions and 1 deletions

View File

@ -944,7 +944,7 @@ class routerOBP(OPENBRIDGE):
logger.debug("%s) Duplicate sequence number %s, disgarding",self._system,_seq)
return
#Inbound out-of-order packets
elif _seq > 1 and _seq < self._lastSeq:
elif _seq == True and (_seq != 1) and (_seq < self._lastSeq):
logger.debug("%s) Out of order packet - last sequence number %s, this sequence number %s, disgarding",self._system,self._lastSeq,_seq)
return
#Inbound missed packets