From db5299004bfb636191e3990c707c8729295d8fb2 Mon Sep 17 00:00:00 2001 From: Adam Saudagar Date: Sun, 18 Oct 2020 06:13:59 +0530 Subject: [PATCH] optimized event handler --- fishy/engine/common/event_handler.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fishy/engine/common/event_handler.py b/fishy/engine/common/event_handler.py index e7a0d7f..612a673 100644 --- a/fishy/engine/common/event_handler.py +++ b/fishy/engine/common/event_handler.py @@ -1,4 +1,6 @@ import logging +import time + from fishy.engine import SemiFisherEngine from fishy.engine.fullautofisher.engine import FullAuto @@ -16,6 +18,7 @@ class EngineEventHandler: while len(self.event) > 0: event = self.event.pop(0) event() + time.sleep(0.1) def toggle_semifisher(self): self.event.append(self.semi_fisher_engine.toggle_start)