mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
use QByteArray::left to send the newly received data during hydration
we use the proper method from QByteArray to forward the data received by GETFileJob to the socket connected to teh fetch data CfApi callback Close https://github.com/nextcloud/desktop/issues/6769 Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
parent
3fbab4c3e4
commit
8233b33d67
@ -318,7 +318,7 @@ void GETFileJob::slotReadyRead()
|
||||
return;
|
||||
}
|
||||
|
||||
const qint64 writtenBytes = writeToDevice(QByteArray::fromRawData(buffer.constData(), readBytes));
|
||||
const qint64 writtenBytes = writeToDevice(buffer.left(readBytes));
|
||||
if (writtenBytes != readBytes) {
|
||||
_errorString = _device->errorString();
|
||||
_errorStatus = SyncFileItem::NormalError;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user