Bug 1323100 - Use NS_NewNamedThread for the Wifi Monitor thread. r=froydnj

MozReview-Commit-ID: 25lwf8WdANT

--HG--
extra : rebase_source : 3f9accf44b8fd9f269d2e2a6b46aa1c8440d3a9c
This commit is contained in:
Markus Stange 2016-12-21 11:33:21 +01:00
parent b50127ee0b
commit 948b3e46ec

View File

@ -84,7 +84,7 @@ NS_IMETHODIMP nsWifiMonitor::StartWatching(nsIWifiListener *aListener)
}
if (!mThread) {
rv = NS_NewThread(getter_AddRefs(mThread), this);
rv = NS_NewNamedThread("Wifi Monitor", getter_AddRefs(mThread), this);
if (NS_FAILED(rv))
return rv;
}
@ -155,8 +155,6 @@ NS_IMETHODIMP nsWifiMonitor::Run()
{
LOG(("@@@@@ wifi monitor run called\n"));
PR_SetCurrentThreadName("Wifi Monitor");
nsresult rv = DoScan();
LOG(("@@@@@ wifi monitor run::doscan complete %x\n", rv));