Bug 882105 - Typo error breaking NetworkManager.js. r=vicamo
authorAlexandre Lissy <lissyx@lissyx.dyndns.org>
Thu, 13 Jun 2013 01:05:55 +0800
changeset 134779 015a2a5a469835afd63138df0d41fea675d6c864
parent 134778 28946fa58c2605e1b7740ece308654acd41edd7b
child 134780 51cdc53ec7fe1f4233e7dfdc7e50fb5faae8e7f9
push id24815
push userryanvm@gmail.com
push dateThu, 13 Jun 2013 02:01:22 +0000
treeherdermozilla-central@68760713a30f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvicamo
bugs882105
milestone24.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 882105 - Typo error breaking NetworkManager.js. r=vicamo --- dom/system/gonk/NetworkManager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
dom/system/gonk/NetworkManager.js
--- a/dom/system/gonk/NetworkManager.js
+++ b/dom/system/gonk/NetworkManager.js
@@ -254,29 +254,29 @@ NetworkManager.prototype = {
             if (network.type == Ci.nsINetworkInterface.NETWORK_TYPE_WIFI) {
               this.mRIL.updateRILNetworkInterface();
             }
             break;
         }
         break;
       case TOPIC_INTERFACE_REGISTERED:
         let regNetwork = subject.QueryInterface(Ci.nsINetworkInterface);
-        debug("Network '" + regNetwork.name + "' registered, adding mmsproxy and/or mmsc route");
         if (regNetwork.type == Ci.nsINetworkInterface.NETWORK_TYPE_MOBILE_MMS) {
+          debug("Network '" + regNetwork.name + "' registered, adding mmsproxy and/or mmsc route");
 	  let mmsHosts = this.resolveHostname(
 	      [ Services.prefs.getCharPref("ril.mms.mmsproxy"),
                 Services.prefs.getCharPref("ril.mms.mmsc") ]
 	    );
           this.addHostRouteWithResolve(regNetwork, mmsHosts);
         }
         break;
       case TOPIC_INTERFACE_UNREGISTERED:
         let unregNetwork = subject.QueryInterface(Ci.nsINetworkInterface);
-        debug("Network '" + regNetwork.name + "' unregistered, removing mmsproxy and/or mmsc route");
         if (unregNetwork.type == Ci.nsINetworkInterface.NETWORK_TYPE_MOBILE_MMS) {
+          debug("Network '" + unregNetwork.name + "' unregistered, removing mmsproxy and/or mmsc route");
 	  let mmsHosts = this.resolveHostname(
 	      [ Services.prefs.getCharPref("ril.mms.mmsproxy"),
                 Services.prefs.getCharPref("ril.mms.mmsc") ]
 	    );
           this.removeHostRouteWithResolve(unregNetwork, mmsHosts);
         }
         break;
       case TOPIC_MOZSETTINGS_CHANGED: