Bug 1186783 (follow-up) - Bustage fix for Gonk.
authorNicholas Nethercote <nnethercote@mozilla.com>
Sun, 29 Nov 2015 15:25:32 -0800
changeset 308734 8d8a6449cb4edd1f7e13b232085ad7d1c07e2d86
parent 308733 149337c2aa8970ada0aaa78c124d085007db0127
child 308735 a520af2646de99bb999dc17fa284574bed8232a3
push id5513
push userraliiev@mozilla.com
push dateMon, 25 Jan 2016 13:55:34 +0000
treeherdermozilla-beta@5ee97dd05b5c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1186783
milestone45.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 1186783 (follow-up) - Bustage fix for Gonk.
netwerk/base/nsIOService.cpp
--- a/netwerk/base/nsIOService.cpp
+++ b/netwerk/base/nsIOService.cpp
@@ -1485,18 +1485,18 @@ nsIOService::Observe(nsISupports *subjec
             nsINetworkInfo::NETWORK_TYPE_WIFI :
             nsINetworkInfo::NETWORK_TYPE_MOBILE;
         if (mPreviousWifiState != newWifiState) {
             // Notify wifi-only apps of their new status
             int32_t status = wifiActive ?
                 nsIAppOfflineInfo::ONLINE : nsIAppOfflineInfo::OFFLINE;
 
             for (auto it = mAppsOfflineStatus.Iter(); !it.Done(); it.Next()) {
-                if (iter.UserData() == nsIAppOfflineInfo::WIFI_ONLY) {
-                    NotifyAppOfflineStatus(iter.Key(), status);
+                if (it.UserData() == nsIAppOfflineInfo::WIFI_ONLY) {
+                    NotifyAppOfflineStatus(it.Key(), status);
                 }
             }
         }
 
         mPreviousWifiState = newWifiState;
 #endif
     }