check shutdown

This commit is contained in:
2025-10-04 14:02:52 -05:00
parent 71b87ebbfa
commit 744a7406d9

View File

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