From 08bcd364e5f32be457263f665797c2301379efb9 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Wed, 18 Mar 2026 11:49:50 +0800 Subject: Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- packages/ui/src/stores/game-store.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/ui/src/stores/game-store.ts b/packages/ui/src/stores/game-store.ts index 7e407de..0d896a1 100644 --- a/packages/ui/src/stores/game-store.ts +++ b/packages/ui/src/stores/game-store.ts @@ -171,9 +171,10 @@ export const useGameStore = create((set, get) => ({ return await stopGameCommand(); } catch (e) { console.error("Failed to stop game:", e); - set({ stoppingInstanceId: null }); toast.error(`Failed to stop game: ${e}`); return null; + } finally { + set({ stoppingInstanceId: null }); } }, -- cgit v1.2.3-70-g09d2