Bug 1164468 - Boolean got incorrectly flipped and stumbling uploads stopped. r=rnewman, a=lmandel
authorGarvan Keeley <gkeeley@mozilla.com>
Wed, 13 May 2015 14:49:04 -0400
changeset 262159 b40e595a89a637cc41f6df430b7cfa03d5d59b2d
parent 262158 87d556c9f685320fea0105280532fb0186db4128
child 262160 21a0c8ae355b64b8fc6643a4d663df4e9e0d07ab
push id8020
push userryanvm@gmail.com
push dateFri, 15 May 2015 15:47:35 +0000
treeherdermozilla-aurora@b03c5f1a77a1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrnewman, lmandel
bugs1164468
milestone40.0a2
Bug 1164468 - Boolean got incorrectly flipped and stumbling uploads stopped. r=rnewman, a=lmandel
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();