0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-05-19 03:13:47 +02:00

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

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;