Commit 0b61046
committed
fix(plugins): handle reinstall cleanly in installPlugin handler
Previously, reinstalling an already-installed plugin would start a
second process without stopping the first one (duplicate processes
sharing the same UUID key in pluginProcesses Map, old process leaked).
Now the handler stops and removes the existing plugin entry before
copying the new files, so reinstalling cleanly replaces the running
process. Also adds force:true to cp so files are always overwritten.1 parent 4a60915 commit 0b61046
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
544 | 544 | | |
545 | 545 | | |
546 | 546 | | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
547 | 550 | | |
548 | 551 | | |
549 | | - | |
| 552 | + | |
550 | 553 | | |
551 | 554 | | |
552 | 555 | | |
| |||
0 commit comments