mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-16 06:25:24 +00:00
Fix: Loop in cloud_exit when task queue empty
This commit is contained in:
parent
58ba02fe29
commit
c729421bd2
@ -422,6 +422,10 @@ class LoginAndroidCloud(ModuleBase):
|
|||||||
out: XPath.START_GAME
|
out: XPath.START_GAME
|
||||||
"""
|
"""
|
||||||
logger.hr('Cloud exit')
|
logger.hr('Cloud exit')
|
||||||
|
if not self.device.app_is_running():
|
||||||
|
logger.info('App is not running, no need to exit')
|
||||||
|
return
|
||||||
|
|
||||||
while 1:
|
while 1:
|
||||||
if skip_first:
|
if skip_first:
|
||||||
skip_first = False
|
skip_first = False
|
||||||
@ -475,6 +479,8 @@ class LoginAndroidCloud(ModuleBase):
|
|||||||
if current != prev:
|
if current != prev:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
logger.info('Cloud exited')
|
||||||
|
|
||||||
def cloud_keep_alive(self):
|
def cloud_keep_alive(self):
|
||||||
"""
|
"""
|
||||||
Randomly do something to prevent being kicked
|
Randomly do something to prevent being kicked
|
||||||
|
Loading…
Reference in New Issue
Block a user