Skip to content

Commit

Permalink
fix: add sleep between event retries
Browse files Browse the repository at this point in the history
  • Loading branch information
iPromKnight authored and Gaisberg committed Aug 31, 2024
1 parent 2ebbf31 commit 01e71f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/program/program.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ def run(self):
except Empty:
if self.enable_trace:
self.dump_tracemalloc()
time.sleep(0.1)
continue


Expand Down Expand Up @@ -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.")
logger.log("PROGRAM", "Riven has been stopped.")

0 comments on commit 01e71f0

Please sign in to comment.