0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-10 14:08:56 +02:00

ircd::net::dns::cache: Unconditional broadcast after invoking waiting callbacks.

This commit is contained in:
Jason Volk 2019-09-10 17:14:41 -07:00
parent 80de67476c
commit da695998ff

View file

@ -871,6 +871,10 @@ ircd::net::dns::cache::call_waiters(const string_view &type,
const json::array &rrs)
{
const ctx::uninterruptible::nothrow ui;
const scope_notify notify
{
dock, scope_notify::all
};
size_t ret(0), last; do
{
@ -898,9 +902,6 @@ ircd::net::dns::cache::call_waiters(const string_view &type,
}
while(last > ret);
if(ret)
dock.notify_all();
return ret;
}