Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/Renci.SshNet/Session.cs
Original file line number Diff line number Diff line change
Expand Up @@ -992,6 +992,9 @@ internal void WaitOnHandle(WaitHandle waitHandle, TimeSpan timeout)
switch (signaledElement)
{
case 0:
#if !NET35 && !NET40
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Capture(_exception).Throw();
#endif
throw _exception;
case 1:
throw new SshConnectionException("Client not connected.");
Expand Down