aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@users.noreply.github.com>2015-09-16 09:55:27 -0700
committerGravatar Jan Tattermusch <jtattermusch@users.noreply.github.com>2015-09-16 09:55:27 -0700
commit156a7b6e0f657ea6a1df1cf6574003920f0da714 (patch)
tree777e4af4a0128ec25b644d6a58c4cd2eefab8c7f
parente8659971a9cedeccb90d39d2dfe784048baa2f19 (diff)
Don't do .Wait() in async context.
Failing to use await can result in deadlock. This is likely to be the cause of shutdown hangs in #3347.
-rw-r--r--src/csharp/Grpc.IntegrationTesting/InteropClient.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/csharp/Grpc.IntegrationTesting/InteropClient.cs b/src/csharp/Grpc.IntegrationTesting/InteropClient.cs
index 0884c6ea60..616093d4ae 100644
--- a/src/csharp/Grpc.IntegrationTesting/InteropClient.cs
+++ b/src/csharp/Grpc.IntegrationTesting/InteropClient.cs
@@ -131,7 +131,7 @@ namespace Grpc.IntegrationTesting
var channel = new Channel(options.ServerHost, options.ServerPort, credentials, channelOptions);
TestService.TestServiceClient client = new TestService.TestServiceClient(channel);
await RunTestCaseAsync(client, options);
- channel.ShutdownAsync().Wait();
+ await channel.ShutdownAsync();
}
private async Task RunTestCaseAsync(TestService.TestServiceClient client, ClientOptions options)