mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
Bug 1014924 - [B2G][Tarako][Geolocation] WifiWorker scan fails With wifi off, and geolocation stops. r=chulee
This commit is contained in:
parent
58d3d3466b
commit
8e37d77e92
@ -2778,6 +2778,11 @@ WifiWorker.prototype = {
|
||||
var timer = null;
|
||||
var self = this;
|
||||
|
||||
if (!WifiManager.enabled) {
|
||||
callback.onfailure();
|
||||
return;
|
||||
}
|
||||
|
||||
self.waitForScan(waitForScanCallback);
|
||||
doScan();
|
||||
function doScan() {
|
||||
|
Loading…
Reference in New Issue
Block a user