Skip to content

Commit dd9971e

Browse files
committed
Ignore IOException in TryPingAsync. Fixes #289
1 parent 506e126 commit dd9971e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/MySqlConnector/Serialization/MySqlSession.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,9 @@ public async Task<bool> TryPingAsync(IOBehavior ioBehavior, CancellationToken ca
370370
catch (EndOfStreamException)
371371
{
372372
}
373+
catch (IOException)
374+
{
375+
}
373376
catch (SocketException)
374377
{
375378
}

0 commit comments

Comments
 (0)