mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix disconnect order.
This commit is contained in:
parent
219d546b79
commit
6d9ff8fac4
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue