We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a64a851 commit 15f0ac7Copy full SHA for 15f0ac7
src/strands/tools/mcp/mcp_client.py
@@ -330,6 +330,9 @@ async def _set_close_event() -> None:
330
self._log_debug_with_thread("waiting for background thread to join")
331
self._background_thread.join()
332
333
+ if self._background_thread_event_loop is not None:
334
+ self._background_thread_event_loop.close()
335
+
336
self._log_debug_with_thread("background thread is closed, MCPClient context exited")
337
338
# Reset fields to allow instance reuse
0 commit comments