Skip to content

Commit

Permalink
Revert changes to old code, even the stupid ones
Browse files Browse the repository at this point in the history
  • Loading branch information
Arkatufus committed Aug 22, 2023
1 parent 53ccf88 commit 954b0f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Akka/Actor/Scheduler/HashedWheelTimerScheduler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,10 @@ private void Start()
if (_workerState == WORKER_STATE_STARTED) { } // do nothing
else if (_workerState == WORKER_STATE_INIT)
{
_worker = new Thread(Run) { IsBackground = true };
if (Interlocked.CompareExchange(ref _workerState, WORKER_STATE_STARTED, WORKER_STATE_INIT) ==
WORKER_STATE_INIT)
{
_worker = new Thread(Run) { IsBackground = true };
_worker.Start();
}
}
Expand Down

0 comments on commit 954b0f3

Please sign in to comment.