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:
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>()
|
||||
};
|
||||
|
||||
for(auto it(begin(tags)); it != end(tags); ++it)
|
||||
auto it(begin(tags));
|
||||
while(it != end(tags))
|
||||
{
|
||||
const auto &id(it->first);
|
||||
auto &tag(it->second);
|
||||
if(!check_timeout(id, tag, now))
|
||||
it = tags.erase(it);
|
||||
else
|
||||
++it;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue