Skip to content

Commit 8ade56f

Browse files
committed
fix: remove undefined foregroundJob.cancel() calls in UploadFileFromContentUriWorker
1 parent 720b7f5 commit 8ade56f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,6 @@ class UploadFileFromContentUriWorker(
364364
if (this.isStopped) {
365365
Timber.w("Cancelling TUS upload. The worker is stopped by user or system")
366366
tusUploadHelper.cancel()
367-
foregroundJob.cancel()
368367
}
369368

370369
if (totalSize <= 0) return
@@ -465,7 +464,6 @@ class UploadFileFromContentUriWorker(
465464
uploadFileOperation.cancel()
466465
uploadFileOperation.removeDataTransferProgressListener(this)
467466
}
468-
foregroundJob.cancel()
469467
}
470468

471469
val percent: Int = (100.0 * totalTransferredSoFar.toDouble() / totalToTransfer.toDouble()).toInt()

0 commit comments

Comments
 (0)