mirror of
https://github.com/aljazceru/mcp-python-sdk.git
synced 2025-12-19 14:54:24 +01:00
Fix hanging on streams when stdio_client exiting (#559)
This commit is contained in:
@@ -181,6 +181,8 @@ async def stdio_client(server: StdioServerParameters, errlog: TextIO = sys.stder
|
||||
await terminate_windows_process(process)
|
||||
else:
|
||||
process.terminate()
|
||||
await read_stream.aclose()
|
||||
await write_stream.aclose()
|
||||
|
||||
|
||||
def _get_executable_command(command: str) -> str:
|
||||
|
||||
Reference in New Issue
Block a user