mirror of
https://github.com/sshnet/SSH.NET.git
synced 2026-09-11 13:39:09 +00:00
Increment signalCount before signaling.
This commit is contained in:
@@ -105,8 +105,8 @@ namespace Renci.SshNet.Tests.Classes.Common
|
||||
threads[i] = new Thread(() =>
|
||||
{
|
||||
Thread.Sleep(sleep);
|
||||
countdownEvent.Signal();
|
||||
Interlocked.Increment(ref signalCount);
|
||||
countdownEvent.Signal();
|
||||
});
|
||||
threads[i].Start();
|
||||
}
|
||||
@@ -143,8 +143,8 @@ namespace Renci.SshNet.Tests.Classes.Common
|
||||
threads[i] = new Thread(() =>
|
||||
{
|
||||
Thread.Sleep(sleep);
|
||||
countdownEvent.Signal();
|
||||
Interlocked.Increment(ref signalCount);
|
||||
countdownEvent.Signal();
|
||||
});
|
||||
threads[i].Start();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user