From 17977b5281c6755eb0703c2831bf953b22a54832 Mon Sep 17 00:00:00 2001 From: DJ2LS <75909252+DJ2LS@users.noreply.github.com> Date: Wed, 28 Dec 2022 17:22:17 +0100 Subject: [PATCH] break connection attempts when version missmatch --- tnc/data_handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tnc/data_handler.py b/tnc/data_handler.py index ed2e47d2..2afff286 100644 --- a/tnc/data_handler.py +++ b/tnc/data_handler.py @@ -1841,8 +1841,6 @@ class DATA: # for calculating transmission statistics # static.ARQ_COMPRESSION_FACTOR = len(data_out) / len(lzma.compress(data_out)) - - self.arq_open_data_channel(mode, n_frames_per_burst, mycallsign) # wait until data channel is open @@ -1956,6 +1954,8 @@ class DATA: # Stop waiting if data channel is opened if static.ARQ_STATE: return True + if static.TNC_STATE in ["IDLE"]: + return False # `data_channel_max_retries` attempts have been sent. Aborting attempt & cleaning up