Skip to content

Commit 12d4740

Browse files
authored
Fix read_stream stream leakage
1 parent d2f1146 commit 12d4740

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/mcp/client/stdio/__init__.py

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

182183

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

0 commit comments

Comments
 (0)