shutdown fix

This commit is contained in:
2025-10-04 14:08:23 -05:00
parent 756f701fdb
commit 1ca93d52d7

View File

@@ -36,11 +36,15 @@ client_pool::pool::work_queue::work_queue() {
}
client_pool::pool::work_queue::~work_queue() {
shutdown = true;
unique_mutex_lock lock(mutex);
notify.notify_all();
lock.unlock();
if (thread->joinable()) {
thread->join();
}
thread.reset();
}
void client_pool::pool::work_queue::work_thread() {