1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 06:18:21 +08:00

Fix: Delay the wrong task after restart (#755)

This commit is contained in:
LmeSzinc
2021-11-22 22:40:11 +08:00
parent 4e87034b4e
commit 790515c800
2 changed files with 15 additions and 1 deletions

View File

@@ -97,6 +97,16 @@ class LoginHandler(Combat):
logger.critical('Azur Lane server may be under maintenance, or you may lost network connection')
raise RequestHumanTakeover
def app_stop(self):
logger.hr('App stop')
self.device.app_stop()
def app_start(self):
logger.hr('App start')
self.device.app_start()
self.handle_app_login()
# self.ensure_no_unfinished_campaign()
def app_restart(self):
logger.hr('App restart')
self.device.app_stop()