fix: handle emulator restart command by clearing cached properties

This commit is contained in:
2026-07-06 22:40:58 +08:00
parent eb5e07c9ff
commit 3d32669431
+4
View File
@@ -252,6 +252,10 @@ class AzurLaneAutoScript:
del_cached_property(self, 'config') del_cached_property(self, 'config')
del_cached_property(self, 'device') del_cached_property(self, 'device')
continue continue
if task.command == 'Restart':
del_cached_property(self, 'config')
del_cached_property(self, 'device')
continue
# 重新启动模拟器 # 重新启动模拟器
if task.command != 'Restart': if task.command != 'Restart':
self.config.task_call('Restart') self.config.task_call('Restart')