mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Fix: Catch account kicked by server maintenance
This commit is contained in:
parent
ca0f483487
commit
4082abda8f
@ -173,6 +173,12 @@ class InfoHandler(ModuleBase):
|
||||
if not self.device.app_is_running():
|
||||
logger.error('Detected hot fixes from game server, game died')
|
||||
raise GameNotRunningError
|
||||
if self.match_template_color(LOGIN_CHECK, offset=(30, 30)):
|
||||
logger.error('Account logged out, '
|
||||
'probably because account kicked by server maintenance or another log in')
|
||||
# Kill game, because game patches after maintenance can only be downloaded at game startup
|
||||
self.device.app_stop()
|
||||
raise GameNotRunningError
|
||||
self._hot_fix_check_wait.clear()
|
||||
|
||||
return appear
|
||||
|
||||
Loading…
Reference in New Issue
Block a user