fix: don't restart the app on normal exists in dev runner (#986)

Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
Noah GregoryandJulius Marminge authored and GitHub committed 2026-03-12 13:03:55 -07:00
1 parent 1e276573c2
commit dcd2e5c34f
1 file changed
+3 -2
+3 -2
View File
@@ -80,12 +80,13 @@ function startApp() {
}
});
app.once("exit", () => {
app.once("exit", (code, signal) => {
if (currentApp === app) {
currentApp = null;
}
if (!shuttingDown && !expectedExits.has(app)) {
const exitedAbnormally = signal !== null || code !== 0;
if (!shuttingDown && !expectedExits.has(app) && exitedAbnormally) {
scheduleRestart();
}
});