From 10250af2516c8f7d41cc79e3c55b59f2eeecfa92 Mon Sep 17 00:00:00 2001 From: Alexander Tkachev Date: Mon, 4 Jul 2016 15:23:13 +0600 Subject: CLOUD: Fix CloudManager's methods Were not returning created Request. --- backends/cloud/cloudmanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backends/cloud') diff --git a/backends/cloud/cloudmanager.cpp b/backends/cloud/cloudmanager.cpp index 0a5006ccef..68c7e9aa8a 100644 --- a/backends/cloud/cloudmanager.cpp +++ b/backends/cloud/cloudmanager.cpp @@ -217,7 +217,7 @@ void CloudManager::printBool(Storage::BoolResponse response) const { Networking::Request *CloudManager::listDirectory(Common::String path, Storage::ListDirectoryCallback callback, Networking::ErrorCallback errorCallback, bool recursive) { Storage *storage = getCurrentStorage(); - if (storage) storage->listDirectory(path, callback, errorCallback, recursive); + if (storage) return storage->listDirectory(path, callback, errorCallback, recursive); else { delete callback; delete errorCallback; @@ -228,7 +228,7 @@ Networking::Request *CloudManager::listDirectory(Common::String path, Storage::L Networking::Request *CloudManager::downloadFolder(Common::String remotePath, Common::String localPath, Storage::FileArrayCallback callback, Networking::ErrorCallback errorCallback, bool recursive) { Storage *storage = getCurrentStorage(); - if (storage) storage->downloadFolder(remotePath, localPath, callback, errorCallback, recursive); + if (storage) return storage->downloadFolder(remotePath, localPath, callback, errorCallback, recursive); else { delete callback; delete errorCallback; -- cgit v1.2.3