Skip to content

Commit

Permalink
reset LongRunning flag even if should requeue
Browse files Browse the repository at this point in the history
  • Loading branch information
ZjzMisaka committed May 5, 2024
1 parent e96e26d commit a901418
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions PowerThreadPool/Core/Worker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,12 @@ internal Worker(PowerPool powerPool)
{
work.WaitSignal.Set();
}
}
if (work.LongRunning)
{
Interlocked.Decrement(ref powerPool.longRunningWorkerCount);
this.LongRunning = false;
}
if (work.LongRunning)
{
Interlocked.Decrement(ref powerPool.longRunningWorkerCount);
this.LongRunning = false;
}
AssignWork();
Expand Down

0 comments on commit a901418

Please sign in to comment.