Bug 882105 - Typo error breaking NetworkManager.js. r=vicamo, a=leo+
authorAlexandre Lissy <lissyx@lissyx.dyndns.org>
Thu, 13 Jun 2013 01:05:55 +0800
changeset 119587 1ac8ebc1779efee24530c3eb2cc1a155f95b6509
parent 119586 1b4b8d9d995b443f1ad6bd6ef2a06c7e243a2c46
child 119588 dead0d387eae17d378b02dbcd0b4dc0221d6e422
push id890
push userryanvm@gmail.com
push dateFri, 14 Jun 2013 18:43:14 +0000
reviewersvicamo, leo
bugs882105
milestone18.1
Bug 882105 - Typo error breaking NetworkManager.js. r=vicamo, a=leo+
dom/system/gonk/NetworkManager.js
--- a/dom/system/gonk/NetworkManager.js
+++ b/dom/system/gonk/NetworkManager.js
@@ -283,29 +283,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: