1
0
Fork 0

MP-DNS: cancel pending request on close.

This commit is contained in:
James Turner 2020-11-04 22:32:30 +00:00
parent 04ff8a5e5e
commit 5386051413

View file

@ -68,6 +68,10 @@ public:
MPServerResolver::~MPServerResolver ()
{
if (_priv->_dnsRequest) {
_priv->_dnsRequest->cancel();
}
delete _priv;
}
@ -188,8 +192,9 @@ MPServerResolver::run ()
break;
case MPServerResolver_priv::DONE:
onSuccess ();
return;
_priv->_dnsRequest.clear();
onSuccess();
return;
}
// Relinguish control, call me back on the next frame