Skip to content

Commit 8480571

Browse files
wip
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
1 parent bfdd238 commit 8480571

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app/src/main/java/com/nextcloud/client/jobs/FilesUploadWorker.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ class FilesUploadWorker(
107107
val user = userAccountManager.getUser(accountName)
108108

109109
val factory = OwnCloudClientManagerFactory.getDefaultSingleton()
110-
111110

112111
for (upload in uploads) {
113112
// create upload file operation
@@ -118,13 +117,13 @@ class FilesUploadWorker(
118117

119118
if (userInfo.isSuccess) {
120119
val free = userInfo.resultData.quota?.free ?: -1L
121-
120+
122121
if (free == -1L || free <= upload.fileSize) {
123122
continue
124123
}
125124
}
126125
}
127-
126+
128127
val uploadFileOperation = createUploadFileOperation(upload, user.get())
129128

130129
val result = upload(uploadFileOperation, user.get())

0 commit comments

Comments
 (0)