mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-21 16:38:23 +01:00
remove special shutdown logic for windows (#992)
This commit is contained in:
parent
62602de71e
commit
f4c7269195
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user