Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion module/device/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class Device(Screenshot, Control, AppControl):
click_record = collections.deque(maxlen=15)
stuck_timer = Timer(60, count=60).start()
stuck_timer_long = Timer(180, count=180).start()
stuck_long_wait_list = ['BATTLE_STATUS_S', 'PAUSE', 'LOGIN_CHECK']
stuck_long_wait_list = ['BATTLE_STATUS_S', 'PAUSE', 'LOGIN_CHECK', 'TEMPLATE_MANJUU']

def __init__(self, *args, **kwargs):
for trial in range(4):
Expand Down
13 changes: 10 additions & 3 deletions module/handler/info_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,11 +535,18 @@ def wait_until_manjuu_disappear(self):
"""
Wait until manjuu loading disappear.
"""
# Abuse of notation. Template do not have readable name, so add string here.
self.device.stuck_record_add('TEMPLATE_MANJUU')
timer = Timer(1.5, count=3).start()
while 1:
self.device.screenshot()
if not self.manjuu_count():
break

if self.manjuu_count():
timer.reset()
else:
if timer.reached():
logger.info(f'Manjuu disappeared')
break

def handle_manjuu(self):
"""
Handle manjuu loading.
Expand Down