Skip to content

Commit

Permalink
Respond immediately to a thread stop request
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-webb committed Dec 22, 2024
1 parent 46d6e02 commit 405a900
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/cpp/threadutility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ void ThreadUtility::priv_data::doPeriodicTasks()
for (auto& item : this->jobs)
{
if (this->terminated)
break;
return;
if (item.nextRun <= currentTime)
{
try
Expand Down

0 comments on commit 405a900

Please sign in to comment.