mirror of
https://github.com/matrix-construct/construct
synced 2024-11-17 23:40:57 +01:00
ircd::net: wat.
This commit is contained in:
parent
a8569fb81b
commit
0e9a1e5109
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue