From 5325e058d811106d551f941b4975118e5b2e41ee Mon Sep 17 00:00:00 2001 From: Kevin Ottens Date: Wed, 13 Jan 2021 18:00:19 +0100 Subject: [PATCH] Repair chunked uploads There's been a confusion between the chunk number and the chunk offset leading to corruptions... Let's pass the proper offset to the UploadDevice again. Signed-off-by: Kevin Ottens --- src/libsync/propagateuploadng.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsync/propagateuploadng.cpp b/src/libsync/propagateuploadng.cpp index ca67b7c04..62d1fca03 100644 --- a/src/libsync/propagateuploadng.cpp +++ b/src/libsync/propagateuploadng.cpp @@ -318,7 +318,7 @@ void PropagateUploadFileNG::startNextChunk() const QString fileName = _fileToUpload._path; auto device = std::make_unique( - fileName, _currentChunk, _currentChunkSize, &propagator()->_bandwidthManager); + fileName, _sent, _currentChunkSize, &propagator()->_bandwidthManager); if (!device->open(QIODevice::ReadOnly)) { qCWarning(lcPropagateUploadNG) << "Could not prepare upload device: " << device->errorString();