@@ -1008,11 +1008,11 @@ private async Task<bool> OpenTcpSocketAsync(ConnectionSettings cs, ILoadBalancer
10081008#endif
10091009 }
10101010 }
1011- catch ( ObjectDisposedException ex ) when ( cancellationToken . IsCancellationRequested )
1011+ catch ( ObjectDisposedException ) when ( cancellationToken . IsCancellationRequested )
10121012 {
10131013 SafeDispose ( ref tcpClient ) ;
10141014 Log . Info ( "Session{0} connect timeout expired connecting to IpAddress {1} for HostName '{2}'" , m_logArguments [ 0 ] , ipAddress , hostName ) ;
1015- throw new MySqlException ( MySqlErrorCode . UnableToConnectToHost , "Connect Timeout expired." , ex ) ;
1015+ throw new MySqlException ( MySqlErrorCode . UnableToConnectToHost , "Connect Timeout expired." ) ;
10161016 }
10171017 }
10181018 }
@@ -1069,10 +1069,10 @@ private async Task<bool> OpenUnixSocketAsync(ConnectionSettings cs, IOBehavior i
10691069 socket . Connect ( unixEp ) ;
10701070 }
10711071 }
1072- catch ( ObjectDisposedException ex ) when ( cancellationToken . IsCancellationRequested )
1072+ catch ( ObjectDisposedException ) when ( cancellationToken . IsCancellationRequested )
10731073 {
10741074 Log . Info ( "Session{0} connect timeout expired connecting to UNIX Socket '{1}'" , m_logArguments ) ;
1075- throw new MySqlException ( MySqlErrorCode . UnableToConnectToHost , "Connect Timeout expired." , ex ) ;
1075+ throw new MySqlException ( MySqlErrorCode . UnableToConnectToHost , "Connect Timeout expired." ) ;
10761076 }
10771077 }
10781078 }
@@ -1126,7 +1126,7 @@ private async Task<bool> OpenNamedPipeAsync(ConnectionSettings cs, int startTick
11261126 {
11271127 m_logArguments[ 1 ] = cs . PipeName ;
11281128 Log . Info ( "Session{0} connect timeout expired connecting to named pipe '{1}'" , m_logArguments ) ;
1129- throw new MySqlException ( MySqlErrorCode . UnableToConnectToHost , "Connect Timeout expired." , ex ) ;
1129+ throw new MySqlException ( MySqlErrorCode . UnableToConnectToHost , "Connect Timeout expired." ) ;
11301130 }
11311131 }
11321132 }
0 commit comments