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() {
8080 }
8181 });
8282
83 app.once("exit", () => {
83 app.once("exit", (code, signal) => {
8484 if (currentApp === app) {
8585 currentApp = null;
8686 }
8787
88 if (!shuttingDown && !expectedExits.has(app)) {
88 const exitedAbnormally = signal !== null || code !== 0;
89 if (!shuttingDown && !expectedExits.has(app) && exitedAbnormally) {
8990 scheduleRestart();
9091 }
9192 });