From 653d977da41e6871ef1d9ca669bc868515c7a7ca Mon Sep 17 00:00:00 2001 From: Break27 Date: Thu, 13 Aug 2026 16:31:51 +0800 Subject: [PATCH] fix: timer state control --- main.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 2efbeba..b451943 100644 --- a/main.py +++ b/main.py @@ -210,8 +210,13 @@ def main(driver: WebDriver, logger = logging.getLogger('main')): @classmethod def perform(cls): - if status == Status.RUNNING: return False - sleep(0.2); return True + if status == Status.RUNNING: + t1.start() + return False + + t1.pause() + sleep(0.2) + return True class Sleep(Action): @classmethod