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.
pull/3354/head
Jan Tattermusch 9 years ago
parent e8659971a9
commit 156a7b6e0f
  1. 2
      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)

Loading…
Cancel
Save