We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe65570 commit a067e28Copy full SHA for a067e28
src/Renci.SshNet/Common/AsyncResult.cs
@@ -1,4 +1,5 @@
1
using System;
2
+using System.Runtime.ExceptionServices;
3
using System.Threading;
4
5
namespace Renci.SshNet.Common
@@ -85,7 +86,7 @@ internal void EndInvoke()
85
86
// Operation is done: if an exception occurred, throw it
87
if (_exception != null)
88
{
- throw _exception;
89
+ ExceptionDispatchInfo.Capture(_exception).Throw();
90
}
91
92
0 commit comments