Bug 1162865 - [DataCall] Do not reset data call's linkInfo if it's still needed. r=echen

This commit is contained in:
Jessica Jong 2015-05-11 17:09:40 +08:00
parent 3309271989
commit a871aa3a80

View File

@ -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);
}