This commit is contained in:
@@ -54,11 +54,11 @@ void polling::frequency_thread(
|
||||
futures.pop_front();
|
||||
}
|
||||
|
||||
lock.lock();
|
||||
if (stop_requested_) {
|
||||
continue;
|
||||
return;
|
||||
}
|
||||
|
||||
lock.lock();
|
||||
notify_.wait_for(lock, std::chrono::seconds(get_frequency_seconds()));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user