Don't reset unused timers.... waste of time

This commit is contained in:
Cort Buffington 2016-09-09 22:30:10 -05:00
parent d530be263c
commit d2279134f3
1 changed files with 1 additions and 1 deletions

View File

@ -341,7 +341,7 @@ class bridgeIPSC(IPSC):
_target = rule['DST_NET']
# TGID matches a rule source, reset its timer
if _ts == rule['SRC_TS'] and _dst_group == rule['SRC_GROUP']:
if _ts == rule['SRC_TS'] and _dst_group == rule['SRC_GROUP'] and (rule['TO_TYPE'] == 'ON' or rule['TO_TYPE'] == 'OFF'):::
rule['TIMER'] = now + rule['TIMEOUT']
logger.info('(%s) Source group transmission match for rule \"%s\". Reset timeout to %s', _network, rule['NAME'], rule['TIMER'])