Delete/timeout pending DNS requests during shutdown

Primarily, this change prevents the pending requests showing up as
memory leaks.
This commit is contained in:
Jon Siwek 2019-12-23 10:10:49 -08:00
parent 2fbcf23f76
commit 8cdcfad6d2

View file

@ -1404,7 +1404,7 @@ void DNS_Mgr::DoProcess()
{ {
AsyncRequest* req = asyncs_timeouts.top(); AsyncRequest* req = asyncs_timeouts.top();
if ( req->time + DNS_TIMEOUT > current_time() ) if ( req->time + DNS_TIMEOUT > current_time() && ! terminating )
break; break;
if ( ! req->processed ) if ( ! req->processed )