From 23ac74dfdfa03d79c1d6e5819a817964d3ac13eb Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 27 Jan 2021 21:30:37 +0000 Subject: [PATCH] Explicit returns in SQL thread --- bridge_master.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bridge_master.py b/bridge_master.py index 90bb24a..e817573 100755 --- a/bridge_master.py +++ b/bridge_master.py @@ -417,6 +417,7 @@ def sendSpeech(self,speech): 'CONTENTION':False, 'RFS': _source_id, 'TGID': _nine, + 'LAST': _pkt_time } _slot['TX_TGID'] = _nine else: @@ -470,6 +471,7 @@ def disconnectedVoice(system): 'CONTENTION':False, 'RFS': _source_id, 'TGID': _nine, + 'LAST': _pkt_time } _slot['TX_TGID'] = _nine else: @@ -536,6 +538,7 @@ def ident(): 'CONTENTION':False, 'RFS': _source_id, 'TGID': _all_call, + 'LAST': _pkt_time } _slot['TX_TGID'] = _all_call else: @@ -657,8 +660,10 @@ def mysqlGetConfig(): except: logger.debug('(MYSQL) problem with SQL query, aborting') sql.close() + return else: logger.debug('(MYSQL) problem connecting to SQL server, aborting') + sql.close() return sql.close()