From dec08d6e337354d486ab7dcf33bcf744904a85cd Mon Sep 17 00:00:00 2001 From: Simon Date: Tue, 13 Apr 2021 16:55:45 +0100 Subject: [PATCH] Stream --- bridge_master.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bridge_master.py b/bridge_master.py index c93f9dd..fa9a880 100755 --- a/bridge_master.py +++ b/bridge_master.py @@ -399,6 +399,8 @@ def stream_trimmer_loop(): #try: if '_to' not in systems[system].STATUS[stream_id] and '_fin' not in systems[system].STATUS[stream_id] and systems[system].STATUS[stream_id]['LAST'] < _now - 5: + _stream = systems[system].STATUS[stream_id] + _sysconfig = CONFIG['SYSTEMS'][system] #systems[system].STATUS[stream_id]['_fin'] = True logger.info('(%s) *TIME OUT* STREAM ID: %s SUB: %s PEER: %s TGID: %s TS 1 Duration: %.2f', \ system, int_id(stream_id), get_alias(int_id(_stream['RFS']), subscriber_ids), get_alias(int_id(_sysconfig['NETWORK_ID']), peer_ids), get_alias(int_id(_stream['TGID']), talkgroup_ids), _stream['LAST'] - _stream['START'])