Skip to content

Commit

Permalink
Fix ObjectDisposedException message (#2415)
Browse files Browse the repository at this point in the history
  • Loading branch information
drewnoakes authored Apr 17, 2024
1 parent 9cd97ce commit 2a36215
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Grpc.Net.Client/GrpcChannel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ internal void RegisterActiveCall(IDisposable grpcCall)
{
// Test the disposed flag inside the lock to ensure there is no chance of a race and adding a call after dispose.
// Note that a GrpcCall has been created but hasn't been started. The error will prevent it from starting.
ObjectDisposedThrowHelper.ThrowIf(Disposed, nameof(GrpcChannel));
ObjectDisposedThrowHelper.ThrowIf(Disposed, typeof(GrpcChannel));

_activeCalls.Add(grpcCall);
}
Expand Down

0 comments on commit 2a36215

Please sign in to comment.