This commit is contained in:
Scott E. Graves 2024-12-07 07:13:13 -06:00
parent f0ddbe7a8c
commit 0e8824a8d2

View File

@ -57,6 +57,7 @@ auto tasks::schedule(task item) -> task_ptr {
unique_mutex_lock lock(mutex_);
if (stop_requested_) {
runnable.wait->set_result(false);
notify_.notify_all();
return runnable.wait;
}