Commit 2cfe428
committed
fix: prevent initialized MCP clients from being cleaned up on timeout
- Do not cancel pending tasks on timeout; let them continue running
in the background waiting for the termination signal (event.set()),
so successfully initialized services remain available
- Track initialization state with a flag to distinguish init failures
from post-init cancellations in _init_mcp_client_task_wrapper1 parent 4924739 commit 2cfe428
1 file changed
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
238 | | - | |
239 | 237 | | |
240 | 238 | | |
241 | 239 | | |
| |||
277 | 275 | | |
278 | 276 | | |
279 | 277 | | |
| 278 | + | |
280 | 279 | | |
281 | 280 | | |
282 | | - | |
283 | | - | |
| 281 | + | |
284 | 282 | | |
285 | 283 | | |
286 | 284 | | |
287 | | - | |
288 | | - | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
289 | 290 | | |
290 | | - | |
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
| |||
0 commit comments