mirror of
https://github.com/matrix-construct/construct
synced 2025-01-22 04:20:03 +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)
|
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…
Add table
Reference in a new issue