Add bugfixes to bridge.py
This commit is contained in:
parent
0b1015b5af
commit
26780d2593
@ -180,8 +180,13 @@ def stream_trimmer_loop():
|
|||||||
if CONFIG['SYSTEMS'][system]['MODE'] == 'OPENBRIDGE':
|
if CONFIG['SYSTEMS'][system]['MODE'] == 'OPENBRIDGE':
|
||||||
remove_list = []
|
remove_list = []
|
||||||
for stream_id in systems[system].STATUS:
|
for stream_id in systems[system].STATUS:
|
||||||
|
try:
|
||||||
if systems[system].STATUS[stream_id]['LAST'] < _now - 5:
|
if systems[system].STATUS[stream_id]['LAST'] < _now - 5:
|
||||||
remove_list.append(stream_id)
|
remove_list.append(stream_id)
|
||||||
|
except:
|
||||||
|
logger.debug("(%s) Keyerror - stream trimmer Stream ID: %s Start: %s Contention: %s RFS: %s TGID: %s",stream_id,systems[system].STATUS[stream_id]['START'],systems[system].STATUS[stream_id]['CONTENTION'],systems[system].STATUS[stream_id]['RFS'],int_id(systems[system].STATUS[stream_id]['TGID']))
|
||||||
|
systems[system].STATUS[stream_id]['LAST'] = _now
|
||||||
|
continue
|
||||||
for stream_id in remove_list:
|
for stream_id in remove_list:
|
||||||
if stream_id in systems[system].STATUS:
|
if stream_id in systems[system].STATUS:
|
||||||
_stream = systems[system].STATUS[stream_id]
|
_stream = systems[system].STATUS[stream_id]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user