0
0
Fork 0
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:
Jason Volk 2020-04-24 23:41:44 -07:00
parent 637b6ecede
commit fc14d4c825

View file

@ -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);