Skip to content

Commit 94817c1

Browse files
committed
Fix test regression
1 parent 0647e71 commit 94817c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ModelContextProtocol.Core/Client/StdioClientSessionTransport.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ protected override async ValueTask CleanupAsync(Exception? error = null, Cancell
5353
// is still mid-cleanup (e.g. blocked in WaitForExitAsync).
5454
if (Interlocked.Exchange(ref _cleanedUp, 1) != 0)
5555
{
56-
SetDisconnected(error);
56+
SetDisconnected(new TransportClosedException(BuildCompletionDetails(error)));
5757
return;
5858
}
5959

0 commit comments

Comments
 (0)