fix(mcp): widen shutdown_mcp_servers exception guard to BaseException

This commit is contained in:
YapBi
2026-06-05 04:22:17 +03:00
committed by Teknium
parent 25742372eb
commit e9529578d5

View File

@ -3800,7 +3800,7 @@ def shutdown_mcp_servers():
if future is not None:
try:
future.result(timeout=15)
except Exception as exc:
except BaseException as exc:
logger.debug("Error during MCP shutdown: %s", exc)
_stop_mcp_loop()