Fix: [ALAS] Game restarted twice if close game during wait

This commit is contained in:
LmeSzinc 2024-05-30 12:32:26 +08:00
parent 456fed4b29
commit 0dd8c6b921

View File

@ -204,6 +204,7 @@ class AzurLaneAutoScript:
if not self.wait_until(task.next_run): if not self.wait_until(task.next_run):
del_cached_property(self, 'config') del_cached_property(self, 'config')
continue continue
if task.command != 'Restart':
self.run('start') self.run('start')
elif method == 'goto_main': elif method == 'goto_main':
logger.info('Goto main page during wait') logger.info('Goto main page during wait')