mirror of
https://github.com/libretro/ppsspp.git
synced 2025-02-26 19:46:19 +00:00
Fix disconnect order.
This commit is contained in:
parent
219d546b79
commit
6d9ff8fac4
@ -342,13 +342,13 @@ size_t HTTPFileLoader::ReadAt(s64 absolutePos, size_t bytes, void *data) {
|
||||
Buffer output;
|
||||
client_.ReadResponseEntity(&readbuf, responseHeaders, &output);
|
||||
|
||||
client_.Disconnect();
|
||||
|
||||
if (!supportedResponse) {
|
||||
ERROR_LOG(LOADER, "HTTP server did not respond with the range we wanted.");
|
||||
return 0;
|
||||
}
|
||||
|
||||
client_.Disconnect();
|
||||
|
||||
size_t readBytes = output.size();
|
||||
output.Take(readBytes, (char *)data);
|
||||
filepos_ = absolutePos + readBytes;
|
||||
|
Loading…
x
Reference in New Issue
Block a user