mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-15 05:17:24 +08:00
Fix: skip first restart
This commit is contained in:
8
alas.py
8
alas.py
@@ -534,8 +534,12 @@ class AzurLaneAutoScript:
|
|||||||
_ = self.device
|
_ = self.device
|
||||||
self.device.config = self.config
|
self.device.config = self.config
|
||||||
# Skip first restart
|
# Skip first restart
|
||||||
if self.is_first_task and task == 'Restart':
|
if task == 'Restart':
|
||||||
logger.info('Skip task `Restart` at scheduler start')
|
if self.is_first_task:
|
||||||
|
logger.info('Skip task `Restart` at scheduler start')
|
||||||
|
else:
|
||||||
|
from module.handler.login import LoginHandler
|
||||||
|
LoginHandler(self.config, self.device).app_restart()
|
||||||
self.config.task_delay(server_update=True)
|
self.config.task_delay(server_update=True)
|
||||||
del_cached_property(self, 'config')
|
del_cached_property(self, 'config')
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user