fix: timer state control

This commit is contained in:
2026-08-13 16:31:51 +08:00
parent 1b8c0d2e43
commit 653d977da4
+7 -2
View File
@@ -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