Skip to content

Commit 574ecd0

Browse files
committed
fix: improve error handling for TUS upload recovery
- Added explicit handling of IOException during TUS upload offset recovery - Propagate IOException to caller instead of catching and returning null - Maintains existing behavior of returning null for other error types
1 parent 91a5759 commit 574ecd0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

opencloudApp/src/main/java/eu/opencloud/android/workers/TusUploadHelper.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,9 @@ class TusUploadHelper(
244244
}
245245
} catch (recoverError: Throwable) {
246246
Timber.w(recoverError, "TUS: recover offset failed")
247+
if (recoverError is java.io.IOException) {
248+
throw recoverError
249+
}
247250
null
248251
}
249252

0 commit comments

Comments
 (0)