Only avoid openbridge for dups

This commit is contained in:
Simon 2020-12-20 17:10:13 +00:00
parent 90409a5e25
commit 7086174e34

View File

@ -926,6 +926,7 @@ class routerOBP(OPENBRIDGE):
#logger.debug('(%s) Packet routed by bridge: %s to system: %s TS: %s, TGID: %s', self._system, _bridge, _target['SYSTEM'], _target['TS'], int_id(_target['TGID']))
#Ignore this system and TS pair if it's called again on this packet
#We want to ignore this system and TS combination if it's called again for this packet
if _target_system['MODE'] == 'OPENBRIDGE':
_sysIgnore.append((_target['SYSTEM'],_target['TS']))
return(_sysIgnore)
@ -1190,6 +1191,7 @@ class routerHBP(HBSYSTEM):
# Transmit the packet to the destination system
systems[_target['SYSTEM']].send_system(_tmp_data)
#logger.debug('(%s) Packet routed by bridge: %s to system: %s TS: %s, TGID: %s', self._system, _bridge, _target['SYSTEM'], _target['TS'], int_id(_target['TGID']))
if _target_system['MODE'] == 'OPENBRIDGE':
_sysIgnore.append((_target['SYSTEM'],_target['TS']))
return _sysIgnore