Commit a64482e
fix(core): prevent duplicate app restarts when typing 'rs' multiple times (#4089)
When typing 'rs' multiple times before the app restarts, each 'rs' command
attached a new 'exit' listener. This caused multiple apps to launch when
the process finally exited. Adding a check for lastSpawned.restarted ensures
subsequent 'rs' commands are ignored until the restart completes.
Co-authored-by: Claude <[email protected]>1 parent df3127c commit a64482e
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
290 | | - | |
| 290 | + | |
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
| |||
0 commit comments