more correct atomic counter

pull/12176/head
Jan Tattermusch 7 years ago
parent 27bb4d99e2
commit 7a3bd5b7d6
  1. 2
      src/csharp/Grpc.Core/Internal/AtomicCounter.cs

@ -64,7 +64,7 @@ namespace Grpc.Core.Internal
{
get
{
return counter;
return Interlocked.Read(ref counter);
}
}
}

Loading…
Cancel
Save