From 3d32669431d92a0fd58af883dae3ed99bde3fd05 Mon Sep 17 00:00:00 2001 From: YoursFunny Date: Mon, 6 Jul 2026 19:41:46 +0800 Subject: [PATCH] fix: handle emulator restart command by clearing cached properties --- module/alas.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/module/alas.py b/module/alas.py index f767ea3..d3b85d3 100644 --- a/module/alas.py +++ b/module/alas.py @@ -252,6 +252,10 @@ class AzurLaneAutoScript: del_cached_property(self, 'config') del_cached_property(self, 'device') continue + if task.command == 'Restart': + del_cached_property(self, 'config') + del_cached_property(self, 'device') + continue # 重新启动模拟器 if task.command != 'Restart': self.config.task_call('Restart')