From fdb85e49bd6e78774e5b5a1413fbf14e98bae527 Mon Sep 17 00:00:00 2001 From: Wraith2 Date: Thu, 19 Mar 2020 15:49:39 +0000 Subject: [PATCH] remove GetAwaiter().GetResult() and use sync call --- .../netcore/src/Microsoft/Data/SqlClient/SNI/SNINpHandle.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNINpHandle.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNINpHandle.cs index 659b1a6e6f..e467444e2b 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNINpHandle.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNINpHandle.cs @@ -274,7 +274,7 @@ public override uint EnableSsl(uint options) try { - _sslStream.AuthenticateAsClientAsync(_targetServer).GetAwaiter().GetResult(); + _sslStream.AuthenticateAsClient(_targetServer); _sslOverTdsStream.FinishHandshake(); } catch (AuthenticationException aue)