From 5cc15962ff2c53e33c0fd6c3b9da9eb01ec8e91a Mon Sep 17 00:00:00 2001 From: Chuck Lee Date: Wed, 25 Sep 2013 16:49:05 +0800 Subject: [PATCH] Bug 917070 - Fix misplaced condition flag. r=vchang --- dom/wifi/WifiWorker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dom/wifi/WifiWorker.js b/dom/wifi/WifiWorker.js index f616107f233..764b3767e4a 100644 --- a/dom/wifi/WifiWorker.js +++ b/dom/wifi/WifiWorker.js @@ -3337,11 +3337,11 @@ WifiWorker.prototype = { this.queueRequest(false, function(data) { if (this.tetheringSettings[SETTINGS_WIFI_TETHERING_ENABLED] || WifiManager.tetheringState != "UNINITIALIZED") { + this.disconnectedByWifi = true; this.setWifiApEnabled(false, this.notifyTetheringOff.bind(this)); } else { this.requestDone(); } - this.disconnectedByWifi = true; }.bind(this)); } @@ -3366,11 +3366,11 @@ WifiWorker.prototype = { if (enabled) { this.queueRequest(false, function(data) { if (WifiManager.enabled || WifiManager.state != "UNINITIALIZED") { + this.disconnectedByWifiTethering = true; this.setWifiEnabled(false, this._setWifiEnabledCallback.bind(this)); } else { this.requestDone(); } - this.disconnectedByWifiTethering = true; }.bind(this)); }