remove special shutdown logic for windows (#992)

This commit is contained in:
Mike Sawka 2024-10-08 18:39:26 -07:00 committed by GitHub
parent 62602de71e
commit f4c7269195
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -942,6 +942,11 @@ electronApp.on("window-all-closed", () => {
electronApp.on("before-quit", (e) => { electronApp.on("before-quit", (e) => {
globalIsQuitting = true; globalIsQuitting = true;
updater?.stop(); 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"); waveSrvProc?.kill("SIGINT");
shutdownWshrpc(); shutdownWshrpc();
if (forceQuit) { if (forceQuit) {