0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-10-02 13:48:53 +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 json::array &rrs)
{ {
const ctx::uninterruptible::nothrow ui; const ctx::uninterruptible::nothrow ui;
const scope_notify notify
{
dock, scope_notify::all
};
size_t ret(0), last; do size_t ret(0), last; do
{ {
@ -898,9 +902,6 @@ ircd::net::dns::cache::call_waiters(const string_view &type,
} }
while(last > ret); while(last > ret);
if(ret)
dock.notify_all();
return ret; return ret;
} }