forked from mirrors/gecko-dev
Bug 1935004 - Remove res_ninit, a=dmeehan
Original Revision: https://phabricator.services.mozilla.com/D236345 Differential Revision: https://phabricator.services.mozilla.com/D237572
This commit is contained in:
parent
16e879ac28
commit
f44b9c9921
1 changed files with 1 additions and 15 deletions
|
|
@ -139,25 +139,11 @@ class DnsThreadListener final : public nsIThreadPoolListener {
|
||||||
};
|
};
|
||||||
|
|
||||||
NS_IMETHODIMP
|
NS_IMETHODIMP
|
||||||
DnsThreadListener::OnThreadCreated() {
|
DnsThreadListener::OnThreadCreated() { return NS_OK; }
|
||||||
#if defined(HAVE_RES_NINIT)
|
|
||||||
if (!(_res.options & RES_INIT)) {
|
|
||||||
auto result = res_ninit(&_res);
|
|
||||||
LOG(("'res_ninit' returned %d ", result));
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
return NS_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
NS_IMETHODIMP
|
NS_IMETHODIMP
|
||||||
DnsThreadListener::OnThreadShuttingDown() {
|
DnsThreadListener::OnThreadShuttingDown() {
|
||||||
DNSThreadShutdown();
|
DNSThreadShutdown();
|
||||||
#if defined(HAVE_RES_NINIT)
|
|
||||||
if (_res.options & RES_INIT) {
|
|
||||||
res_nclose(&_res);
|
|
||||||
memset(&_res, 0, sizeof(_res));
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue