MP-DNS: cancel pending request on close.
This commit is contained in:
parent
04ff8a5e5e
commit
5386051413
1 changed files with 7 additions and 2 deletions
|
@ -68,6 +68,10 @@ public:
|
||||||
|
|
||||||
MPServerResolver::~MPServerResolver ()
|
MPServerResolver::~MPServerResolver ()
|
||||||
{
|
{
|
||||||
|
if (_priv->_dnsRequest) {
|
||||||
|
_priv->_dnsRequest->cancel();
|
||||||
|
}
|
||||||
|
|
||||||
delete _priv;
|
delete _priv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -188,8 +192,9 @@ MPServerResolver::run ()
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MPServerResolver_priv::DONE:
|
case MPServerResolver_priv::DONE:
|
||||||
onSuccess ();
|
_priv->_dnsRequest.clear();
|
||||||
return;
|
onSuccess();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Relinguish control, call me back on the next frame
|
// Relinguish control, call me back on the next frame
|
||||||
|
|
Loading…
Reference in a new issue