You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Merge pull request #35246 from zaksnet/disconnect-while-downloading
Disconnect while downloading
This commit is contained in:
@@ -387,6 +387,9 @@ bool HTTPRequest::_update_connection() {
|
||||
}
|
||||
|
||||
client->poll();
|
||||
if (client->get_status() != HTTPClient::STATUS_BODY) {
|
||||
return false;
|
||||
}
|
||||
|
||||
PackedByteArray chunk = client->read_response_body_chunk();
|
||||
downloaded.add(chunk.size());
|
||||
|
||||
Reference in New Issue
Block a user