Remove unecessary call to sendTransferInfo.
authorCamila Ayres <hello@camilasan.com>
Fri, 5 Jul 2024 17:34:03 +0000 (19:34 +0200)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Mon, 8 Jul 2024 12:22:20 +0000 (12:22 +0000)
Possible fix for #6876.

Signed-off-by: Camila Ayres <hello@camilasan.com>
src/libsync/vfs/cfapi/cfapiwrapper.cpp

index a5f370acbf42af8d09f5f5be8fdc97ad8fe120b3..645dcfc8015e49775dda71981ab1303fe296fe80 100644 (file)
@@ -246,8 +246,6 @@ void CALLBACK cfApiFetchDataCallback(const CF_CALLBACK_INFO *callbackInfo, const
         protrudingData.clear();
         if (data.size() < cfapiBlockSize) {
             protrudingData = data;
-            sendTransferInfo(data, dataOffset);
-            dataOffset += data.size();
             return;
         }
         const auto protudingSize = data.size() % cfapiBlockSize;