ircd::net::dns::resolver: Add condition to not retry query during shutdown.

This commit is contained in:
Jason Volk 2023-03-05 15:26:15 -08:00
parent e57fc466cd
commit f2d94b5cc0
1 changed files with 7 additions and 1 deletions

View File

@ -349,7 +349,13 @@ ircd::net::dns::resolver::check_timeout(const uint16_t &id,
host(tag.hp)
};
if(tag.tries < size_t(retry_max))
const bool retry
{
tag.tries < size_t(retry_max)
&& run::level != run::level::QUIT
};
if(retry)
{
submit(tag);
return false;