CLOUD: Fix FolderDownloadRequest
Actually, I'm not completely sure, but this fixed the segfault when user closes ScummVM during the download. Even if that's not a fix, these lines must be in this method anyway.
This commit is contained in:
parent
659dcd9702
commit
1cfdb96616
1 changed files with 2 additions and 0 deletions
|
@ -81,6 +81,8 @@ void FolderDownloadRequest::fileDownloadedCallback(Storage::BoolResponse respons
|
|||
}
|
||||
|
||||
void FolderDownloadRequest::fileDownloadedErrorCallback(Networking::ErrorResponse error) {
|
||||
_workingRequest = nullptr;
|
||||
if (_ignoreCallback) return;
|
||||
fileDownloadedCallback(Storage::BoolResponse(error.request, false));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue