mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 13:05:51 +03:00
propagator_qnam: Avoid using too much memory
The idea here was that the buffer would be maximum 8KiB, not minimum.
This commit is contained in:
parent
86bea9a9af
commit
82c254fecf
1 changed files with 1 additions and 1 deletions
|
@ -427,7 +427,7 @@ void GETFileJob::slotMetaDataChanged()
|
|||
|
||||
void GETFileJob::slotReadyRead()
|
||||
{
|
||||
int bufferSize = qMax(1024*8ll , reply()->bytesAvailable());
|
||||
int bufferSize = qMin(1024*8ll , reply()->bytesAvailable());
|
||||
QByteArray buffer(bufferSize, Qt::Uninitialized);
|
||||
|
||||
while(reply()->bytesAvailable() > 0) {
|
||||
|
|
Loading…
Reference in a new issue