summaryrefslogtreecommitdiff
path: root/plugins/CloudFile/src/Services/dropbox_service.cpp
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2018-03-12 23:44:52 +0300
committeraunsane <aunsane@gmail.com>2018-03-12 23:45:11 +0300
commitd4e64ad19a3bc6d384c973715497fc6283750e3a (patch)
tree9ac965e9fbea7b1afbac74ebe2442d54b839a193 /plugins/CloudFile/src/Services/dropbox_service.cpp
parenta70058727e91037ca532a52decbcc8c3aea2d03e (diff)
Autobackup to CloudFile doesn't work (fixed #1176)
Diffstat (limited to 'plugins/CloudFile/src/Services/dropbox_service.cpp')
-rw-r--r--plugins/CloudFile/src/Services/dropbox_service.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/CloudFile/src/Services/dropbox_service.cpp b/plugins/CloudFile/src/Services/dropbox_service.cpp
index dfbdc0f799..4e308e1612 100644
--- a/plugins/CloudFile/src/Services/dropbox_service.cpp
+++ b/plugins/CloudFile/src/Services/dropbox_service.cpp
@@ -262,7 +262,7 @@ UINT CDropboxService::Upload(FileTransferParam *ftp)
size_t offset = size;
double chunkCount = ceil(double(fileSize) / chunkSize) - 2;
- while (chunkCount > 0) {
+ for (size_t i = 0; i < chunkCount; i++) {
ftp->CheckCurrentFile();
size = ftp->ReadCurrentFile(chunk, chunkSize);