Skip to content

Commit 2a36215

Browse files
authored
Fix ObjectDisposedException message (#2415)
1 parent 9cd97ce commit 2a36215

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Grpc.Net.Client/GrpcChannel.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ internal void RegisterActiveCall(IDisposable grpcCall)
545545
{
546546
// Test the disposed flag inside the lock to ensure there is no chance of a race and adding a call after dispose.
547547
// Note that a GrpcCall has been created but hasn't been started. The error will prevent it from starting.
548-
ObjectDisposedThrowHelper.ThrowIf(Disposed, nameof(GrpcChannel));
548+
ObjectDisposedThrowHelper.ThrowIf(Disposed, typeof(GrpcChannel));
549549

550550
_activeCalls.Add(grpcCall);
551551
}

0 commit comments

Comments
 (0)