Bug 946942 - [MMS] MO/MT MMS fail if the MMS APN is shared with default APN (follow-up). r=anshulj,me a=v1.3+

This commit is contained in:
Gene Lian 2013-12-09 11:58:03 +08:00
parent 0191263847
commit d62325fd3f

View File

@ -256,11 +256,13 @@ MmsConnection.prototype = {
let networkManager =
Cc["@mozilla.org/network/manager;1"].getService(Ci.nsINetworkManager);
let activeNetwork = networkManager.active;
if (activeNetwork.serviceId != this.serviceId) {
let rilNetwork = activeNetwork.QueryInterface(Ci.nsIRilNetworkInterface);
if (rilNetwork.serviceId != this.serviceId) {
if (DEBUG) debug("Sevice ID between active/MMS network doesn't match.");
return;
}
let rilNetwork = activeNetwork.QueryInterface(Ci.nsIRilNetworkInterface);
// Set up the MMS APN setting based on the connected MMS network,
// which is going to be used for the HTTP requests later.
this.setApnSetting(rilNetwork);