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 260476 4aac185d033d
parent 260475 aa3a683fd335
child 260477 5fff1e20ed9c
push id795
push userryanvm@gmail.com
push date2015-05-13 21:24 +0000
treeherdermozilla-release@5fff1e20ed9c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrnewman, lmandel
bugs1164468
milestone38.0.5
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();