Skip to content

Commit fc59a06

Browse files
committed
Don't log error when canceled. Fixes #1544
1 parent 3da6f66 commit fc59a06

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/MySqlConnector/Core/ServerSession.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1731,7 +1731,8 @@ await sslStream.AuthenticateAsClientAsync(clientAuthenticationOptions.TargetHost
17311731
}
17321732
catch (Exception ex)
17331733
{
1734-
Log.CouldNotInitializeTlsConnection(m_logger, ex, Id);
1734+
if (ex is not OperationCanceledException)
1735+
Log.CouldNotInitializeTlsConnection(m_logger, ex, Id);
17351736
sslStream.Dispose();
17361737
ShutdownSocket();
17371738
HostName = "";

0 commit comments

Comments
 (0)