mirror of
https://github.com/matrix-construct/construct
synced 2025-01-05 20:34:29 +01:00
ircd::net::dns::resolver: Add condition to not retry query during shutdown.
This commit is contained in:
parent
e57fc466cd
commit
f2d94b5cc0
1 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue