mirror of
https://github.com/matrix-construct/construct
synced 2024-05-29 00:03:45 +02:00
ircd::net::dns::cache: Remove all waiters matching criteria.
This commit is contained in:
parent
637b6ecede
commit
fc14d4c825
|
@ -255,13 +255,14 @@ ircd::net::dns::cache::waiter::call(const uint16_t &type,
|
|||
};
|
||||
|
||||
auto it(begin(waiting));
|
||||
for(last = ret; it != end(waiting); ++it)
|
||||
for(last = ret; it != end(waiting);)
|
||||
if(call(*it, type, tgt, rrs))
|
||||
{
|
||||
it = waiting.erase(it);
|
||||
++ret;
|
||||
break;
|
||||
continue;
|
||||
}
|
||||
else ++it;
|
||||
}
|
||||
while(last < ret);
|
||||
|
||||
|
|
Loading…
Reference in a new issue