This commit is contained in:
sgraves committed 2024-12-05 12:40:41 -06:00
1 parent 56a56e57c8
commit 9b2310a3e7
1 file changed
+2 -4
+2 -4
View File
@@ -32,12 +32,10 @@ void tasks::schedule(task_item task) {
notify_.wait(lock);
}
if (stop_requested_) {
notify_.notify_all();
return;
if (not stop_requested_) {
tasks_.push_back(std::move(task));
}
tasks_.push_back(std::move(task));
notify_.notify_all();
}