dispose requestCallContextPool on environment shutdown

pull/14087/head
Jan Tattermusch 7 years ago
parent bb2f7e28ed
commit eb88bf03af
  1. 1
      src/csharp/Grpc.Core/GrpcEnvironment.cs

@ -381,6 +381,7 @@ namespace Grpc.Core
await Task.Run(() => ShuttingDown?.Invoke(this, null)).ConfigureAwait(false);
await threadPool.StopAsync().ConfigureAwait(false);
requestCallContextPool.Dispose();
batchContextPool.Dispose();
GrpcNativeShutdown();
isShutdown = true;

Loading…
Cancel
Save