fix: timer state control
This commit is contained in:
1 parent
1b8c0d2e43
commit
653d977da4
1 file changed
+7
-2
@@ -210,8 +210,13 @@ def main(driver: WebDriver, logger = logging.getLogger('main')):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def perform(cls):
|
def perform(cls):
|
||||||
if status == Status.RUNNING: return False
|
if status == Status.RUNNING:
|
||||||
sleep(0.2); return True
|
t1.start()
|
||||||
|
return False
|
||||||
|
|
||||||
|
t1.pause()
|
||||||
|
sleep(0.2)
|
||||||
|
return True
|
||||||
|
|
||||||
class Sleep(Action):
|
class Sleep(Action):
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|||||||
Reference in new issue
Block a user