This commit is contained in:
Scott E. Graves 2024-12-28 19:35:17 -06:00
parent 43bf3c0cb2
commit b4b688d3b9

View File

@ -146,7 +146,10 @@ void client_pool::remove_client(const std::string &client_id) {
}
void client_pool::shutdown() {
if (not shutdown_) {
if (shutdown_) {
return;
}
event_system::instance().raise<service_shutdown_begin>("client_pool");
unique_mutex_lock pool_lock(pool_mutex_);
if (not shutdown_) {
@ -159,5 +162,4 @@ void client_pool::shutdown() {
pool_lock.unlock();
event_system::instance().raise<service_shutdown_end>("client_pool");
}
}
} // namespace repertory