diff --git a/scripts/run-tauri-dev.cjs b/scripts/run-tauri-dev.cjs index b097864..5686f84 100644 --- a/scripts/run-tauri-dev.cjs +++ b/scripts/run-tauri-dev.cjs @@ -141,9 +141,15 @@ async function launchTauri() { }) tauriProcess.on('exit', (code, signal) => { + const wasShuttingDown = shuttingDown shuttingDown = true stopSpawnedBackend() + if (wasShuttingDown) { + process.exit(0) + return + } + if (signal) { process.exit(signal === 'SIGINT' || signal === 'SIGTERM' ? 0 : 1) return