Skip to content

Commit 474f072

Browse files
authored
Close write_stream_reader in finally block
1 parent 2591f80 commit 474f072

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mcp/client/stdio/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ async def stdin_writer():
177177
await terminate_windows_process(process)
178178
else:
179179
process.terminate()
180-
tg.cancel_scope.cancel()
180+
write_stream_reader.close()
181181

182182

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

0 commit comments

Comments
 (0)