зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1073342 - Remove non-necessary thread in WifiCertService. r=vchang
This commit is contained in:
Родитель
4924761b67
Коммит
d030ea489d
|
@ -227,13 +227,6 @@ WifiCertService::Start(nsIWifiEventListener* aListener)
|
|||
{
|
||||
MOZ_ASSERT(aListener);
|
||||
|
||||
nsresult rv = NS_NewThread(getter_AddRefs(mRequestThread));
|
||||
if (NS_FAILED(rv)) {
|
||||
NS_WARNING("Certn't create wifi control thread");
|
||||
Shutdown();
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
mListener = aListener;
|
||||
|
||||
return NS_OK;
|
||||
|
@ -243,10 +236,6 @@ NS_IMETHODIMP
|
|||
WifiCertService::Shutdown()
|
||||
{
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
if (mRequestThread) {
|
||||
mRequestThread->Shutdown();
|
||||
mRequestThread = nullptr;
|
||||
}
|
||||
|
||||
mListener = nullptr;
|
||||
|
||||
|
|
|
@ -27,7 +27,6 @@ public:
|
|||
private:
|
||||
WifiCertService();
|
||||
~WifiCertService();
|
||||
nsCOMPtr<nsIThread> mRequestThread;
|
||||
nsCOMPtr<nsIWifiEventListener> mListener;
|
||||
};
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче