From f4c72691951baeba014a0b02fe06f73fbc92dc13 Mon Sep 17 00:00:00 2001 From: Mike Sawka Date: Tue, 8 Oct 2024 18:39:26 -0700 Subject: [PATCH] remove special shutdown logic for windows (#992) --- emain/emain.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/emain/emain.ts b/emain/emain.ts index ee6ed3fbe..5dec24e1a 100644 --- a/emain/emain.ts +++ b/emain/emain.ts @@ -942,6 +942,11 @@ electronApp.on("window-all-closed", () => { electronApp.on("before-quit", (e) => { globalIsQuitting = true; updater?.stop(); + if (unamePlatform == "win32") { + // win32 doesn't have a SIGINT, so we just let electron die, which + // ends up killing wavesrv via closing it's stdin. + return; + } waveSrvProc?.kill("SIGINT"); shutdownWshrpc(); if (forceQuit) {