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:
1 parent
1e276573c2
commit
dcd2e5c34f
1 file changed
+3
-2
@@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user