зеркало из 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);
|
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;
|
mListener = aListener;
|
||||||
|
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
|
@ -243,10 +236,6 @@ NS_IMETHODIMP
|
||||||
WifiCertService::Shutdown()
|
WifiCertService::Shutdown()
|
||||||
{
|
{
|
||||||
MOZ_ASSERT(NS_IsMainThread());
|
MOZ_ASSERT(NS_IsMainThread());
|
||||||
if (mRequestThread) {
|
|
||||||
mRequestThread->Shutdown();
|
|
||||||
mRequestThread = nullptr;
|
|
||||||
}
|
|
||||||
|
|
||||||
mListener = nullptr;
|
mListener = nullptr;
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,6 @@ public:
|
||||||
private:
|
private:
|
||||||
WifiCertService();
|
WifiCertService();
|
||||||
~WifiCertService();
|
~WifiCertService();
|
||||||
nsCOMPtr<nsIThread> mRequestThread;
|
|
||||||
nsCOMPtr<nsIWifiEventListener> mListener;
|
nsCOMPtr<nsIWifiEventListener> mListener;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче