From 62b939fbc99d4a19304990db93155e932607cf39 Mon Sep 17 00:00:00 2001 From: Paul Kronenwetter Date: Fri, 15 Apr 2022 19:59:12 -0400 Subject: [PATCH] Replaced sleep with helpers.wait in transmit_qrv. --- tnc/data_handler.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tnc/data_handler.py b/tnc/data_handler.py index 70ffb21f..7a529646 100644 --- a/tnc/data_handler.py +++ b/tnc/data_handler.py @@ -1686,9 +1686,8 @@ class DATA(): # Sleep a random amount of time before responding to make it more likely to be # heard when many stations respond. Each DATAC0 frame is 0.44 sec (440ms) in # duration, plus overhead. Set the wait interval to be random between 0 and 2s - # in 0.5s increments. If the maximum time is "too long,"" the user may believe the - # UI / TNC has frozen because this sleep blocks all other activity. - time.sleep(randrange(0, 20, 5) / 10.0) + # in 0.5s increments. + helpers.wait(randrange(0, 20, 5) / 10.0) static.INFO.append("QRV;SENDING") structlog.get_logger("structlog").info("[TNC] Sending QRV!")