refactor
This commit is contained in:
parent
43bf3c0cb2
commit
b4b688d3b9
@ -146,7 +146,10 @@ void client_pool::remove_client(const std::string &client_id) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void client_pool::shutdown() {
|
void client_pool::shutdown() {
|
||||||
if (not shutdown_) {
|
if (shutdown_) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
event_system::instance().raise<service_shutdown_begin>("client_pool");
|
event_system::instance().raise<service_shutdown_begin>("client_pool");
|
||||||
unique_mutex_lock pool_lock(pool_mutex_);
|
unique_mutex_lock pool_lock(pool_mutex_);
|
||||||
if (not shutdown_) {
|
if (not shutdown_) {
|
||||||
@ -158,6 +161,5 @@ void client_pool::shutdown() {
|
|||||||
}
|
}
|
||||||
pool_lock.unlock();
|
pool_lock.unlock();
|
||||||
event_system::instance().raise<service_shutdown_end>("client_pool");
|
event_system::instance().raise<service_shutdown_end>("client_pool");
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} // namespace repertory
|
} // namespace repertory
|
||||||
|
Loading…
x
Reference in New Issue
Block a user