From a871aa3a804bec75f25e20ba7cde73952bc7e55c Mon Sep 17 00:00:00 2001 From: Jessica Jong Date: Mon, 11 May 2015 17:09:40 +0800 Subject: [PATCH] Bug 1162865 - [DataCall] Do not reset data call's linkInfo if it's still needed. r=echen --- dom/system/gonk/RadioInterfaceLayer.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dom/system/gonk/RadioInterfaceLayer.js b/dom/system/gonk/RadioInterfaceLayer.js index ee3883c051fb..fe75de5b3ce3 100644 --- a/dom/system/gonk/RadioInterfaceLayer.js +++ b/dom/system/gonk/RadioInterfaceLayer.js @@ -2834,8 +2834,11 @@ DataCall.prototype = { // the state probably was notified already or need not to be notified. if (networkInterface.state == RIL.GECKO_NETWORK_STATE_DISCONNECTED) { networkInterface.notifyRILNetworkInterface(); + // Clear link info after notifying NetworkManager. - this.resetLinkInfo(); + if (this.requestedNetworkIfaces.length === 0) { + this.resetLinkInfo(); + } } }, Ci.nsIEventTarget.DISPATCH_NORMAL); }