Commit 1dbb6b6
committed
fix: use app.exit(0) instead of app.quit() when duplicate instance detected
When requestSingleInstanceLock returns false, app.quit() only schedules
an asynchronous shutdown but does not stop the current Effect pipeline.
This allows the startup sequence in DesktopApp to continue with
whenReady, backend bootstrap, and window creation — potentially causing
port conflicts and duplicate backends.
app.exit(0) immediately terminates the process, which is the correct
behavior for a duplicate instance with no windows or state to clean up.1 parent 640dc63 commit 1dbb6b6
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | | - | |
| 295 | + | |
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
| |||
0 commit comments