diff options
author | Jan Tattermusch <jtattermusch@users.noreply.github.com> | 2015-09-16 09:55:27 -0700 |
---|---|---|
committer | Jan Tattermusch <jtattermusch@users.noreply.github.com> | 2015-09-16 09:55:27 -0700 |
commit | 156a7b6e0f657ea6a1df1cf6574003920f0da714 (patch) | |
tree | 777e4af4a0128ec25b644d6a58c4cd2eefab8c7f /src | |
parent | e8659971a9cedeccb90d39d2dfe784048baa2f19 (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.
Diffstat (limited to 'src')
-rw-r--r-- | src/csharp/Grpc.IntegrationTesting/InteropClient.cs | 2 |
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) |