mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-15 07:28:30 +00:00
Do not run reconciliation while there are still uploads in progress.
This commit is contained in:
committed by
Michelle Tang
parent
73ea50d162
commit
b06f0bba61
@@ -126,6 +126,11 @@ class ArchiveAttachmentReconciliationJob private constructor(
|
||||
return Result.success()
|
||||
}
|
||||
|
||||
if (!AppDependencies.jobManager.areQueuesEmpty(UploadAttachmentToArchiveJob.QUEUES)) {
|
||||
Log.i(TAG, "There are still uploads in progress. Retrying later.")
|
||||
return Result.retry(defaultBackoff())
|
||||
}
|
||||
|
||||
// It's possible a new backup could be started while this job is running. If we don't keep a consistent view of the snapshot version, the logic
|
||||
// we use to determine which attachments need to be re-uploaded will possibly result in us unnecessarily re-uploading attachments.
|
||||
snapshotVersion = snapshotVersion ?: SignalDatabase.backupMediaSnapshots.getCurrentSnapshotVersion()
|
||||
|
||||
Reference in New Issue
Block a user