mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 06:55:59 +03:00
Merge pull request #6975 from nextcloud/bugfix/fixImplicitHydrationCorruptedData
use QByteArray::left to send the newly received data during hydration
This commit is contained in:
commit
a754e2af74
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue