Skip to content

Commit a59995e

Browse files
LionNatsuihrpr
andauthored
Update src/mcp/client/stdio/__init__.py
Use async versions of .close() Co-authored-by: ihrpr <inna.hrpr@gmail.com>
1 parent a2e3328 commit a59995e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mcp/client/stdio/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ async def stdin_writer():
177177
await terminate_windows_process(process)
178178
else:
179179
process.terminate()
180-
read_stream.close()
181-
write_stream.close()
180+
await read_stream.aclose()
181+
await write_stream.aclose()
182182

183183

184184
def _get_executable_command(command: str) -> str:

0 commit comments

Comments
 (0)