Don't retry backup on removable storage
This commit is contained in:
parent
49262682d1
commit
860733d238
1 changed files with 4 additions and 1 deletions
|
@ -120,7 +120,10 @@ class AppBackupWorker(
|
||||||
if (isStopped) {
|
if (isStopped) {
|
||||||
Result.retry()
|
Result.retry()
|
||||||
} else {
|
} else {
|
||||||
doBackup()
|
val result = doBackup()
|
||||||
|
// only allow retrying if rescheduling is allowed
|
||||||
|
if (tags.contains(TAG_RESCHEDULE)) return result
|
||||||
|
else Result.success()
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
// schedule next backup, because the old one gets lost
|
// schedule next backup, because the old one gets lost
|
||||||
|
|
Loading…
Reference in a new issue