| author | |
| committer | |
| log | dcd2e5c34fbbf6cba7cdb23caef86568771a78d4 |
| tree | ba7b67ec84aa899ab02222e531bdabe53d47693f |
| parent | 1e276573c2925827691bb9840c21e8e130834aad |
| signature | Signed by PGP key B5690EEEBB952194 |
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 | 80 | } |
| 81 | 81 | }); |
| 82 | 82 | |
| 83 | app.once("exit", () => { | |
| 83 | app.once("exit", (code, signal) => { | |
| 84 | 84 | if (currentApp === app) { |
| 85 | 85 | currentApp = null; |
| 86 | 86 | } |
| 87 | 87 | |
| 88 | if (!shuttingDown && !expectedExits.has(app)) { | |
| 88 | const exitedAbnormally = signal !== null || code !== 0; | |
| 89 | if (!shuttingDown && !expectedExits.has(app) && exitedAbnormally) { | |
| 89 | 90 | scheduleRestart(); |
| 90 | 91 | } |
| 91 | 92 | }); |