Skip to content

Commit

Permalink
ConnectionDisconnected
Browse files Browse the repository at this point in the history
  • Loading branch information
WojciechNagorski committed Apr 13, 2023
1 parent f2e15e2 commit 419cc2a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/Renci.SshNet.Tests/Common/AsyncSocketListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -323,13 +323,8 @@ void ConnectionDisconnected()
}
catch (ObjectDisposedException ex)
{
//ConnectionDisconnected();
if (!_started)
{
throw new Exception("BeginReceive throws ObjectDisposedException while stopping! " + _stackTrace, ex);
}

throw new Exception("BeginReceive throws ObjectDisposedException while started! " + _stackTrace, ex);
// TODO On .NET 7, sometimes we get ObjectDisposedException when _started but only on appveyor, locally it works
ConnectionDisconnected();
}
catch (SocketException ex)
{
Expand Down

0 comments on commit 419cc2a

Please sign in to comment.