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 68dded5 commit c2bd7b5Copy full SHA for c2bd7b5
src/Renci.SshNet/Abstractions/ThreadAbstraction.cs
@@ -36,6 +36,8 @@ public static void ExecuteThreadLongRunning(Action action)
36
/// <param name="action">The action to execute.</param>
37
public static void ExecuteThread(Action action)
38
{
39
+ if (action == null)
40
+ throw new ArgumentNullException("action");
41
#if FEATURE_THREAD_THREADPOOL
42
System.Threading.ThreadPool.QueueUserWorkItem(o => action());
43
#elif FEATURE_THREAD_TAP
0 commit comments