mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-02 15:05:16 +00:00
[#3785] Silent Wshadow
This commit is contained in:
@@ -251,10 +251,10 @@ CtrlAgentProcess::configure(isc::data::ConstElementPtr config_set,
|
|||||||
} else {
|
} else {
|
||||||
// If the connection can not be reused, stop it and remove it from the list.
|
// If the connection can not be reused, stop it and remove it from the list.
|
||||||
data.second->listener_->stop();
|
data.second->listener_->stop();
|
||||||
auto it = sockets_.find(std::make_pair(data.second->config_->getHttpHost(),
|
auto it2 = sockets_.find(std::make_pair(data.second->config_->getHttpHost(),
|
||||||
data.second->config_->getHttpPort()));
|
data.second->config_->getHttpPort()));
|
||||||
if (it != sockets_.end()) {
|
if (it2 != sockets_.end()) {
|
||||||
sockets_.erase(it);
|
sockets_.erase(it2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user