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