From eb88bf03af7d4d441b0d6ef8127193dddefa9006 Mon Sep 17 00:00:00 2001 From: Jan Tattermusch Date: Fri, 19 Jan 2018 18:37:45 +0100 Subject: [PATCH] dispose requestCallContextPool on environment shutdown --- src/csharp/Grpc.Core/GrpcEnvironment.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/csharp/Grpc.Core/GrpcEnvironment.cs b/src/csharp/Grpc.Core/GrpcEnvironment.cs index 7b4342b74b9..6296f1863ba 100644 --- a/src/csharp/Grpc.Core/GrpcEnvironment.cs +++ b/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;