mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 21:15:48 +00:00
Fix handling of resumable upload errors in archive uploads.
This commit is contained in:
@@ -231,6 +231,12 @@ class UploadAttachmentToArchiveJob private constructor(
|
||||
|
||||
is NetworkResult.StatusCodeError -> {
|
||||
Log.w(TAG, "[$attachmentId] Failed to upload due to status code error. Code: ${result.code}", result.exception)
|
||||
when (result.code) {
|
||||
400 -> {
|
||||
Log.w(TAG, "[$attachmentId] 400 likely means bad resumable state. Clearing upload spec before retrying.")
|
||||
uploadSpec = null
|
||||
}
|
||||
}
|
||||
return Result.retry(defaultBackoff())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user