mirror of
https://github.com/matrix-construct/construct
synced 2024-11-04 21:08:57 +01:00
ircd::net::dns: Wait on cache before resolver on fini; replace regressed (26cd9cec85
).
This commit is contained in:
parent
57227c6758
commit
fd30c4701c
2 changed files with 3 additions and 2 deletions
|
@ -27,8 +27,6 @@ ircd::net::dns::init()
|
|||
void
|
||||
ircd::net::dns::fini()
|
||||
{
|
||||
resolver_fini();
|
||||
|
||||
if(!cache::waiting.empty())
|
||||
log::warning
|
||||
{
|
||||
|
@ -40,6 +38,8 @@ ircd::net::dns::fini()
|
|||
{
|
||||
return cache::waiting.empty();
|
||||
});
|
||||
|
||||
resolver_fini();
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -145,6 +145,7 @@ noexcept
|
|||
return tags.empty();
|
||||
});
|
||||
|
||||
ns.close();
|
||||
assert(!mutex.locked());
|
||||
assert(sendq.empty());
|
||||
assert(tags.empty());
|
||||
|
|
Loading…
Reference in a new issue