From 01e71f021643348dc7dddc4b172cf0ecb548342d Mon Sep 17 00:00:00 2001 From: iPromKnight <156901906+iPromKnight@users.noreply.github.com> Date: Sat, 31 Aug 2024 13:50:01 +0100 Subject: [PATCH] fix: add sleep between event retries --- src/program/program.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/program/program.py b/src/program/program.py index 964575a0..0441d9d7 100644 --- a/src/program/program.py +++ b/src/program/program.py @@ -351,6 +351,7 @@ def run(self): except Empty: if self.enable_trace: self.dump_tracemalloc() + time.sleep(0.1) continue @@ -384,4 +385,4 @@ def stop(self): executor["_executor"].shutdown(wait=False) if hasattr(self, "scheduler") and self.scheduler.running: self.scheduler.shutdown(wait=False) - logger.log("PROGRAM", "Riven has been stopped.") \ No newline at end of file + logger.log("PROGRAM", "Riven has been stopped.")