We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08808f3 commit cd33b00Copy full SHA for cd33b00
src/mcp/client/stdio/__init__.py
@@ -181,9 +181,9 @@ async def stdin_writer():
181
# 1. Close input stream to server
182
# 2. Wait for server to exit, or send SIGTERM if it doesn't exit in time
183
# 3. Send SIGKILL if still not exited
184
- if process.stdin:
+ if process.stdout:
185
try:
186
- await process.stdin.aclose()
+ await process.stdout.aclose()
187
except Exception:
188
# stdin might already be closed, which is fine
189
pass
0 commit comments