mirror of
https://github.com/matrix-construct/construct
synced 2024-05-19 11:23:45 +02:00
ircd::net::dns::resolver: Add condition to not retry query during shutdown.
This commit is contained in:
parent
e57fc466cd
commit
f2d94b5cc0
|
@ -349,7 +349,13 @@ ircd::net::dns::resolver::check_timeout(const uint16_t &id,
|
||||||
host(tag.hp)
|
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);
|
submit(tag);
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue