0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-30 04:38:52 +02:00

ircd::net: wat.

This commit is contained in:
Jason Volk 2018-02-27 23:59:28 -08:00
parent a8569fb81b
commit 0e9a1e5109

View file

@ -2312,12 +2312,15 @@ ircd::net::dns::resolver::check_timeouts()
ircd::now<steady_point>() ircd::now<steady_point>()
}; };
for(auto it(begin(tags)); it != end(tags); ++it) auto it(begin(tags));
while(it != end(tags))
{ {
const auto &id(it->first); const auto &id(it->first);
auto &tag(it->second); auto &tag(it->second);
if(!check_timeout(id, tag, now)) if(!check_timeout(id, tag, now))
it = tags.erase(it); it = tags.erase(it);
else
++it;
} }
} }