stephb9959
2023-12-02 13:28:54 -08:00
parent 3bcfb6e3a3
commit 9a40ef5a5c
4 changed files with 90 additions and 2 deletions

View File

@@ -136,7 +136,8 @@ namespace OpenWifi {
auto i = Services_.begin();
auto now = Utils::Now();
for (; i != Services_.end();) {
if ((now - i->second.LastUpdate) > 60) {
if ((now - i->second.LastUpdate) > 120) {
poco_warning(logger(), fmt::format("ZombieService: Removing service {}, ", i->second.PublicEndPoint));
i = Services_.erase(i);
} else
++i;