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:
Alexander Tkachev 2016-07-04 17:55:09 +06:00
parent 659dcd9702
commit 1cfdb96616

View file

@ -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));
}