Skip to content

Commit bae2f98

Browse files
committed
fix(auto-upload): handle upload results
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
1 parent f96b4fd commit bae2f98

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/src/main/java/com/nextcloud/client/jobs/autoUpload/AutoUploadEntityResult.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import com.nextcloud.client.database.entity.UploadEntity
1111
import com.owncloud.android.db.OCUpload
1212

1313
sealed class AutoUploadEntityResult {
14-
data object PermanentFailure : AutoUploadEntityResult()
14+
data object NonRetryable : AutoUploadEntityResult()
1515
data object CreationError : AutoUploadEntityResult()
1616
data object Uploaded : AutoUploadEntityResult()
1717
data class Success(val data: Pair<UploadEntity, OCUpload>) : AutoUploadEntityResult()

app/src/main/java/com/nextcloud/client/jobs/autoUpload/AutoUploadWorker.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ class AutoUploadWorker(
409409
TAG,
410410
"last upload failed with ${lastUploadResult.value}, skipping auto-upload: $localPath"
411411
)
412-
return AutoUploadEntityResult.PermanentFailure
412+
return AutoUploadEntityResult.NonRetryable
413413
}
414414

415415
val upload = try {

0 commit comments

Comments
 (0)