0
0
Fork 0
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:
Jason Volk 2018-10-27 13:39:48 -07:00
parent 6868282ecf
commit 806e1c95f7

View file

@ -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