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:
parent
80de67476c
commit
da695998ff
1 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue