Bug 989719 - js error in WifiWorker when doing geolocation and WiFi is disabled. r=chulee

This commit is contained in:
Vincent Chang 2014-03-31 10:30:44 +08:00
parent 5289a955ba
commit 540280ae22

View File

@ -2584,7 +2584,7 @@ WifiWorker.prototype = {
if (count++ >= 3) {
timer = null;
this.wantScanResults.splice(this.wantScanResults.indexOf(waitForScanCallback), 1);
self.wantScanResults.splice(self.wantScanResults.indexOf(waitForScanCallback), 1);
callback.onfailure();
return;
}