mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 16:22:35 +01:00
modules/s_dns_resolver: Fix the timeout context shutdown.
This commit is contained in:
parent
6868282ecf
commit
806e1c95f7
1 changed files with 2 additions and 3 deletions
|
@ -127,7 +127,7 @@ noexcept
|
|||
{
|
||||
ns.close();
|
||||
sendq_context.terminate();
|
||||
timeout_context.interrupt();
|
||||
timeout_context.terminate();
|
||||
while(!tags.empty())
|
||||
{
|
||||
log::warning
|
||||
|
@ -206,10 +206,9 @@ try
|
|||
check_timeouts(milliseconds(timeout));
|
||||
}
|
||||
}
|
||||
catch(const ctx::interrupted &)
|
||||
catch(const ctx::terminated &)
|
||||
{
|
||||
cancel_all_tags();
|
||||
return;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue