diff --git a/src/main/cpp/threadutility.cpp b/src/main/cpp/threadutility.cpp index 4f713c926..72e872485 100644 --- a/src/main/cpp/threadutility.cpp +++ b/src/main/cpp/threadutility.cpp @@ -354,7 +354,7 @@ void ThreadUtility::priv_data::doPeriodicTasks() for (auto& item : this->jobs) { if (this->terminated) - break; + return; if (item.nextRun <= currentTime) { try