wait for 5s

This commit is contained in:
2025-10-04 14:01:09 -05:00
parent 81559a7b7e
commit 71b87ebbfa

View File

@@ -75,7 +75,7 @@ void client_pool::pool::work_queue::work_thread() {
while (not shutdown) { while (not shutdown) {
lock.lock(); lock.lock();
if (actions.empty()) { if (actions.empty()) {
notify.wait(lock); notify.wait_for(lock, std::chrono::seconds(5U));
unlock_and_notify(); unlock_and_notify();
continue; continue;
} }