leave possible endless loop (#1986)
This commit is contained in:
parent
1fdc660641
commit
7b811f9b3a
@ -1176,6 +1176,10 @@ int HTTPClient::writeToStreamDataBlock(Stream * stream, int size)
|
|||||||
readBytes = buff_size;
|
readBytes = buff_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// stop if no more reading
|
||||||
|
if (readBytes == 0)
|
||||||
|
break;
|
||||||
|
|
||||||
// read data
|
// read data
|
||||||
int bytesRead = _client->readBytes(buff, readBytes);
|
int bytesRead = _client->readBytes(buff, readBytes);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user