Commit c89233d
committed
fix: prevent disabled MCP servers from restarting due to config file watcher
- Added check in handleConfigFileChange to ignore file change events for servers with active toggle operations
- This prevents the race condition where disabling a server triggers a config write, which triggers the file watcher, which would restart the server
- Fixes the issue where disabled servers would immediately restart after being shut down1 parent 3f50226 commit c89233d
1 file changed
+13
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
318 | | - | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
319 | 331 | | |
320 | 332 | | |
321 | 333 | | |
| |||
0 commit comments