Bug 1164468 - Boolean got incorrectly flipped and stumbling uploads stopped. r=rnewman
authorGarvan Keeley <gkeeley@mozilla.com>
Wed, 13 May 2015 14:49:04 -0400
changeset 243739 5c12b34d73d3a19e29ab25b471d6090e6b259883
parent 243738 50865b3243b6398b60e42350e3d34841cdace1c3
child 243740 21701097dafb7881a697794f9962204b28356ff4
push id28753
push userkwierso@gmail.com
push dateThu, 14 May 2015 22:33:43 +0000
treeherdermozilla-central@07e2e15703cb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrnewman
bugs1164468
milestone41.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 1164468 - Boolean got incorrectly flipped and stumbling uploads stopped. r=rnewman
mobile/android/stumbler/java/org/mozilla/mozstumbler/service/uploadthread/AsyncUploader.java
--- a/mobile/android/stumbler/java/org/mozilla/mozstumbler/service/uploadthread/AsyncUploader.java
+++ b/mobile/android/stumbler/java/org/mozilla/mozstumbler/service/uploadthread/AsyncUploader.java
@@ -146,17 +146,17 @@ public class AsyncUploader extends Async
     }
 
     private void uploadReports(AbstractCommunicator.SyncSummary syncResult, Runnable progressListener) {
         long uploadedObservations = 0;
         long uploadedCells = 0;
         long uploadedWifis = 0;
 
         if (!mUploadArgs.mShouldIgnoreWifiStatus && mUploadArgs.mUseWifiOnly &&
-               mUploadArgs.mNetworkUtils.isWifiAvailable()) {
+               !mUploadArgs.mNetworkUtils.isWifiAvailable()) {
             if (AppGlobals.isDebug) {
                 Log.d(LOG_TAG, "not on WiFi, not sending");
             }
             syncResult.numIoExceptions += 1;
             return;
         }
 
         Submitter submitter = new Submitter();