Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Cli/dotnet/Commands/Test/MTP/IPC/NamedPipeServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public void Dispose()
// If the loop task is null at this point we have race condition, means that the task didn't start yet and we already dispose.
// This is unexpected and we throw an exception.

// To close gracefully we need to ensure that the client closed the stream line 103.
// To close gracefully we need to ensure that the client closed the stream and the InternalLoopAsync method has exited (indicated by the `// The client has disconnected` comment).
if (!_loopTask!.Wait(TimeSpan.FromSeconds(90)))
{
throw new InvalidOperationException(CliCommandStrings.InternalLoopAsyncDidNotExitSuccessfullyErrorMessage);
Expand Down
Loading