Skip to content

Commit cd33b00

Browse files
test
1 parent 08808f3 commit cd33b00

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
@@ -181,9 +181,9 @@ async def stdin_writer():
181181
# 1. Close input stream to server
182182
# 2. Wait for server to exit, or send SIGTERM if it doesn't exit in time
183183
# 3. Send SIGKILL if still not exited
184-
if process.stdin:
184+
if process.stdout:
185185
try:
186-
await process.stdin.aclose()
186+
await process.stdout.aclose()
187187
except Exception:
188188
# stdin might already be closed, which is fine
189189
pass

0 commit comments

Comments
 (0)