Skip to content

Commit 288e961

Browse files
committed
fix: stop uploads if quota exceeded
Signed-off-by: alperozturk <[email protected]>
1 parent cbda93e commit 288e961

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/src/main/java/com/nextcloud/client/jobs/upload/FileUploadWorker.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,9 @@ class FileUploadWorker(
204204
currentUploadFileOperation = null
205205

206206
if (result.code == ResultCode.QUOTA_EXCEEDED) {
207+
Log_OC.w(TAG, "Quota exceeded, stopping uploads")
207208
notificationManager.showQuotaExceedNotification(operation, result.code)
208-
continue
209+
break
209210
}
210211

211212
sendUploadFinishEvent(totalUploadSize, currentUploadIndex, operation, result)

0 commit comments

Comments
 (0)