aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/packages
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2026-03-18 11:49:50 +0800
committerGitHub <noreply@github.com>2026-03-18 11:49:50 +0800
commit08bcd364e5f32be457263f665797c2301379efb9 (patch)
treecd327644b1311b2ab80c2102b2fb6e54131915fa /packages
parent698d89b1342b7166945bb74bd4757bec8aeb8cfb (diff)
downloadDropOut-08bcd364e5f32be457263f665797c2301379efb9.tar.gz
DropOut-08bcd364e5f32be457263f665797c2301379efb9.zip
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Diffstat (limited to 'packages')
-rw-r--r--packages/ui/src/stores/game-store.ts3
1 files changed, 2 insertions, 1 deletions
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<GameState>((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 });
}
},