Skip to content

Commit 6e4f872

Browse files
committed
Merge branch 'develop' into dependabot
2 parents 510af4c + 7a599e2 commit 6e4f872

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Renci.SshNet/BaseClient.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,14 @@ private void SendKeepAliveMessage()
502502
{
503503
_ = session.TrySendMessage(new IgnoreMessage());
504504
}
505+
catch (ObjectDisposedException)
506+
{
507+
// ignore
508+
}
509+
catch (Exception ex)
510+
{
511+
_logger.LogError(ex, "Error sending keepalive message");
512+
}
505513
finally
506514
{
507515
Monitor.Exit(_keepAliveLock);

0 commit comments

Comments
 (0)