Skip to content

Commit 10b78fa

Browse files
laurent-jeancler-realistbgrainger
authored andcommitted
Handle ObjectDisposedException in ServerSession.TryResetConnectionAsync
Signed-off-by: Laurent Jeancler <[email protected]>
1 parent 186196b commit 10b78fa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/MySqlConnector/Core/ServerSession.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,10 @@ public async Task<bool> TryResetConnectionAsync(ConnectionSettings cs, IOBehavio
543543
{
544544
Log.Debug(ex, "Session{0} ignoring IOException in TryResetConnectionAsync", m_logArguments);
545545
}
546+
catch (ObjectDisposedException ex)
547+
{
548+
Log.Debug(ex, "Session{0} ignoring ObjectDisposedException in TryResetConnectionAsync", m_logArguments);
549+
}
546550
catch (SocketException ex)
547551
{
548552
Log.Debug(ex, "Session{0} ignoring SocketException in TryResetConnectionAsync", m_logArguments);

0 commit comments

Comments
 (0)