Skip to content

Commit

Permalink
Merge pull request #2312 from dimagi/autoUpdateRetries
Browse files Browse the repository at this point in the history
[2.49.6] Fixes Auto update retries
  • Loading branch information
shubham1g5 authored Aug 13, 2020
2 parents 0704ef4 + ebda686 commit 2aa22bb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/src/org/commcare/update/UpdateWorker.kt
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,10 @@ class UpdateWorker(appContext: Context, workerParams: WorkerParameters)

cleanUp()

return when (updateResult.data.shouldRetryUpdate()) {
true -> Result.success()
else -> Result.retry()
return when {
updateResult.data == AppInstallStatus.Installed -> Result.success()
updateResult.data.shouldRetryUpdate() -> Result.retry()
else -> Result.failure()
}
}

Expand Down

0 comments on commit 2aa22bb

Please sign in to comment.