check shutdown
This commit is contained in:
@@ -75,8 +75,10 @@ void client_pool::pool::work_queue::work_thread() {
|
||||
while (not shutdown) {
|
||||
lock.lock();
|
||||
if (actions.empty()) {
|
||||
if (not shutdown) {
|
||||
notify.wait_for(lock, std::chrono::seconds(5U));
|
||||
unlock_and_notify();
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user