aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorAlexander Tkachev2016-07-04 17:55:09 +0600
committerAlexander Tkachev2016-08-24 16:07:55 +0600
commit1cfdb9661678a5cabb77c2cf60d2fa357121d584 (patch)
treeee609ced108077dec17d6507ffe4e3b4cfbb545d /backends
parent659dcd9702a82b3fdf5b6c6c87f11267fe313744 (diff)
downloadscummvm-rg350-1cfdb9661678a5cabb77c2cf60d2fa357121d584.tar.gz
scummvm-rg350-1cfdb9661678a5cabb77c2cf60d2fa357121d584.tar.bz2
scummvm-rg350-1cfdb9661678a5cabb77c2cf60d2fa357121d584.zip
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.
Diffstat (limited to 'backends')
-rw-r--r--backends/cloud/folderdownloadrequest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/backends/cloud/folderdownloadrequest.cpp b/backends/cloud/folderdownloadrequest.cpp
index d57da6bc7f..6cf55b28cf 100644
--- a/backends/cloud/folderdownloadrequest.cpp
+++ b/backends/cloud/folderdownloadrequest.cpp
@@ -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));
}