From 0aa5a840faf21c35257e31d05ddf5f94d87da345 Mon Sep 17 00:00:00 2001 From: "Szu-Yu Chen [:aknow]" Date: Fri, 13 Dec 2013 11:46:23 -0500 Subject: [PATCH] Bug 949876 - Fix setRadioEnabled queueing method. r=hsinyi --- dom/system/gonk/RadioInterfaceLayer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dom/system/gonk/RadioInterfaceLayer.js b/dom/system/gonk/RadioInterfaceLayer.js index 94c36dbc29e4..c6b85204d1a0 100644 --- a/dom/system/gonk/RadioInterfaceLayer.js +++ b/dom/system/gonk/RadioInterfaceLayer.js @@ -491,7 +491,7 @@ XPCOMUtils.defineLazyGetter(this, "gRadioEnabledController", function () { receiveMessage: function(msg) { if (DEBUG) debug("setRadioEnabled: receiveMessage: " + JSON.stringify(msg)); this.pendingMessages.push(msg); - if (this.pendingMessages.length === 1) { + if (this.pendingMessages.length === 1 && !this.isDeactivatingDataCalls()) { this._processNextMessage(); } }, @@ -540,7 +540,6 @@ XPCOMUtils.defineLazyGetter(this, "gRadioEnabledController", function () { } else { this.request = (function() { radioInterface.receiveMessage(msg); - this._processNextMessage(); }).bind(this); // In some DSDS architecture with only one modem, toggling one radio may @@ -596,6 +595,7 @@ XPCOMUtils.defineLazyGetter(this, "gRadioEnabledController", function () { this.request(); this.request = null; } + this._processNextMessage(); } }; });