refactor: 不要なシャットダウン処理を削除し、アプリ終了時のテレメトリ送信を簡素化

This commit is contained in:
misyaguziya
2026-01-09 22:30:01 +09:00
parent d4a5a1ca6f
commit 19af0ea918
2 changed files with 4 additions and 63 deletions

View File

@@ -154,16 +154,8 @@ export const useWindow = () => {
};
const asyncCloseApp = async () => {
// Send shutdown signal to backend before closing the app
// This ensures telemetry app_closed event is sent and flushed
// Note: Don't await this call, let it run in background (fire-and-forget)
asyncStdoutToPython("/run/shutdown");
// Give backend time to process shutdown and flush telemetry
// Tauri sidecar will be terminated when UI closes, so timing is critical
await new Promise(resolve => setTimeout(resolve, 2000));
// Now close the UI window (this will also terminate the backend sidecar)
await appWindow.close();
};