refactor
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good

This commit is contained in:
Scott E. Graves 2024-12-06 13:59:34 -06:00
parent 4a7c76cc1c
commit 9c5166b921

View File

@ -107,6 +107,11 @@ void tasks::task_thread() {
try { try {
task.action(stop_requested_); task.action(stop_requested_);
if (stop_requested_) {
release();
return;
}
std::this_thread::sleep_for(std::chrono::milliseconds(task.delay_ms)); std::this_thread::sleep_for(std::chrono::milliseconds(task.delay_ms));
--count_; --count_;
} catch (const std::exception &e) { } catch (const std::exception &e) {