Cover also the error case.

This commit is contained in:
Benoit Marty 2022-01-24 22:49:34 +01:00
parent cf86fe34d5
commit 80d9b64e5a
1 changed files with 1 additions and 1 deletions

View File

@ -207,11 +207,11 @@ internal class DefaultSyncTask @Inject constructor(
}
}
}
syncStatisticsData.downloadInitSyncTime = SystemClock.elapsedRealtime()
} else {
throw syncResponse.toFailure(globalErrorReceiver)
.also { Timber.tag(loggerTag.value).w("INIT_SYNC request failure: $this") }
}
syncStatisticsData.downloadInitSyncTime = SystemClock.elapsedRealtime()
initialSyncStatusRepository.setStep(InitialSyncStatus.STEP_DOWNLOADED)
}
return workingFile