diff --git a/app/src/main/java/com/eveningoutpost/dexdrip/tidepool/TidepoolUploader.java b/app/src/main/java/com/eveningoutpost/dexdrip/tidepool/TidepoolUploader.java index 7f6e9b7389..14eb8b7498 100644 --- a/app/src/main/java/com/eveningoutpost/dexdrip/tidepool/TidepoolUploader.java +++ b/app/src/main/java/com/eveningoutpost/dexdrip/tidepool/TidepoolUploader.java @@ -188,8 +188,6 @@ private static void startSession(final Session session, boolean fromUi) { session.authReply.userid, BuildConfig.APPLICATION_ID, 1); datasetCall.enqueue(new TidepoolCallback>(session, "Get Open Datasets", () -> { - UserError.Log.d(TAG, "Existing Dataset: " + session.datasetReply.getUploadId()); - if (session.datasetReply == null) { status("New data set"); if (fromUi) { @@ -199,6 +197,7 @@ private static void startSession(final Session session, boolean fromUi) { call.enqueue(new TidepoolCallback(session, "Open New Dataset", () -> doUpload(session)) .setOnFailure(TidepoolUploader::releaseWakeLock)); } else { + UserError.Log.d(TAG, "Existing Dataset: " + session.datasetReply.getUploadId()); // TODO: Wouldn't need to do this if we could block on the above `call.enqueue`. // ie, do the openDataSet conditionally, and then do `doUpload` either way. status("Appending");