0
0
Fork 0
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:
Jason Volk 2019-09-20 12:27:46 -07:00
parent 57227c6758
commit fd30c4701c
2 changed files with 3 additions and 2 deletions

View file

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

View file

@ -145,6 +145,7 @@ noexcept
return tags.empty();
});
ns.close();
assert(!mutex.locked());
assert(sendq.empty());
assert(tags.empty());