From 98a96cbe34ee50bbd242542c5891768608e586b4 Mon Sep 17 00:00:00 2001 From: Hemna Date: Sat, 23 Nov 2024 09:14:43 -0500 Subject: [PATCH] Make sure to sleep(1) in the main RX thread In case the consumer can't run, we need to sleep in the main loop of the RX thread in case we are paused. --- aprsd/threads/rx.py | 1 + 1 file changed, 1 insertion(+) diff --git a/aprsd/threads/rx.py b/aprsd/threads/rx.py index e7e313d..c629a5b 100644 --- a/aprsd/threads/rx.py +++ b/aprsd/threads/rx.py @@ -70,6 +70,7 @@ class APRSDRXThread(APRSDThread): self._client.reset() time.sleep(5) # Continue to loop + time.sleep(1) return True def _process_packet(self, *args, **kwargs):