diff options
author | Zak Stam <zakscomputers@hotmail.com> | 2021-02-27 18:01:40 +0100 |
---|---|---|
committer | Zak <zakscomputers@hotmail.com> | 2021-03-02 11:58:09 +0100 |
commit | bc8fe786b2fa4ad4bfb10daeb9bfe38eddfc2496 (patch) | |
tree | 89a9f6ae0630418fc1a09abb110975bc3132be6c /scene/main | |
parent | 70c39737db18619a9ac37264ab0f9187871e7907 (diff) |
Update scene/main/http_request.cpp
Co-authored-by: RĂ©mi Verschelde <rverschelde@gmail.com>
Diffstat (limited to 'scene/main')
-rw-r--r-- | scene/main/http_request.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scene/main/http_request.cpp b/scene/main/http_request.cpp index e89000f21b..a391ac4777 100644 --- a/scene/main/http_request.cpp +++ b/scene/main/http_request.cpp @@ -349,8 +349,9 @@ bool HTTPRequest::_update_connection() { } client->poll(); - if (client->get_status() != HTTPClient::STATUS_BODY) - break; // State changed after this poll, will check at next iteration. + if (client->get_status() != HTTPClient::STATUS_BODY) { + return false; + } PoolByteArray chunk = client->read_response_body_chunk(); downloaded += chunk.size(); |