From a6fc5e1fcacf81493b908f36c38303fc7afb985e Mon Sep 17 00:00:00 2001 From: DJ2LS Date: Sat, 22 Apr 2023 13:37:51 +0200 Subject: [PATCH] increased timeouts for channel opener --- 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 38103e40..70f84860 100644 --- a/tnc/data_handler.py +++ b/tnc/data_handler.py @@ -1977,7 +1977,7 @@ class DATA: # wait a moment for the case, a heartbeat is already on the way back to us # this makes channel establishment more clean if static.ARQ_SESSION: - threading.Event().wait(2) + threading.Event().wait(2.5) self.datachannel_timeout = False @@ -2080,7 +2080,7 @@ class DATA: self.enqueue_frame_for_tx([connection_frame], c2_mode=FREEDV_MODE.sig0.value, copies=1, repeat_delay=0) - timeout = time.time() + 3 + (static.TX_DELAY/1000 * 2) + timeout = time.time() + 5 + (static.TX_DELAY/1000 * 2) while time.time() < timeout: threading.Event().wait(0.01) # Stop waiting if data channel is opened