mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 15:06:08 +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()
|
void GETFileJob::slotReadyRead()
|
||||||
{
|
{
|
||||||
int bufferSize = qMax(1024*8ll , reply()->bytesAvailable());
|
int bufferSize = qMin(1024*8ll , reply()->bytesAvailable());
|
||||||
QByteArray buffer(bufferSize, Qt::Uninitialized);
|
QByteArray buffer(bufferSize, Qt::Uninitialized);
|
||||||
|
|
||||||
while(reply()->bytesAvailable() > 0) {
|
while(reply()->bytesAvailable() > 0) {
|
||||||
|
|
Loading…
Reference in a new issue