pull/21365/head
James Newton-King 5 years ago
parent 74f3291a13
commit 4f834e73b2
No known key found for this signature in database
GPG Key ID: A66B2F456BF5526
  1. 10
      src/csharp/Grpc.Core.Api/AsyncCallState.cs

@ -85,8 +85,14 @@ namespace Grpc.Core
internal void Dispose()
{
var withState = disposeAction as Action<object>;
if (withState != null) withState(callbackState);
else ((Action)disposeAction)();
if (withState != null)
{
withState(callbackState);
}
else
{
((Action)disposeAction)();
}
}
}
}

Loading…
Cancel
Save