Bug 737376 - Shut down the wifi system on shutdown. r=cjones

This commit is contained in:
Blake Kaplan 2012-03-20 14:57:07 +01:00
parent 4ccbf5168d
commit a9840236d4
2 changed files with 10 additions and 1 deletions

View File

@ -254,6 +254,11 @@ SystemWorkerManager::Shutdown()
StopRil();
mRILWorker = nsnull;
nsCOMPtr<nsIWifi> wifi(do_QueryInterface(mWifiWorker));
if (wifi) {
wifi->Shutdown();
wifi = nsnull;
}
mWifiWorker = nsnull;
nsCOMPtr<nsIObserverService> obs =

View File

@ -39,8 +39,12 @@
#include "nsIDOMDOMRequest.idl"
#include "nsIDOMEvent.idl"
[scriptable, uuid(9DCE05BF-659C-4427-A050-0EAC3BB6C1C0)]
[scriptable, uuid(abb936bc-ba81-4c23-8dfa-3e5d96557044)]
interface nsIWifi : nsISupports {
/**
* Shutdown the wifi system.
*/
void shutdown();
};
[scriptable, uuid(1509221f-470e-4445-b476-88e74fd5c617)]