authorgravatar for noah@wts.devNoah Gregory <noah@wts.dev> 2026-03-12 16:03:55-04:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-03-12 13:03:55-07:00
logdcd2e5c34fbbf6cba7cdb23caef86568771a78d4
treeba7b67ec84aa899ab02222e531bdabe53d47693f
parent1e276573c2925827691bb9840c21e8e130834aad
signature Signed by PGP key B5690EEEBB952194

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

Co-authored-by: Julius Marminge <julius0216@outlook.com>

1 files changed, 3 insertions(+), 2 deletions(-)

apps/desktop/scripts/dev-electron.mjs+3-2
...@@ -80,12 +80,13 @@ function startApp() {...@@ -80,12 +80,13 @@ function startApp() {
80 }80 }
81 });81 });
8282
83 app.once("exit", () => {83 app.once("exit", (code, signal) => {
84 if (currentApp === app) {84 if (currentApp === app) {
85 currentApp = null;85 currentApp = null;
86 }86 }
8787
88 if (!shuttingDown && !expectedExits.has(app)) {88 const exitedAbnormally = signal !== null || code !== 0;
89 if (!shuttingDown && !expectedExits.has(app) && exitedAbnormally) {
89 scheduleRestart();90 scheduleRestart();
90 }91 }
91 });92 });