From 4f6e1fb944308a7b254bbb45befee0016d87caaf Mon Sep 17 00:00:00 2001 From: minggo Date: Sun, 28 Jul 2013 09:53:59 +0800 Subject: [PATCH] set _isDownloading to false before return --- extensions/AssetsManager/AssetsManager.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/extensions/AssetsManager/AssetsManager.cpp b/extensions/AssetsManager/AssetsManager.cpp index e1e5a06ec5..ac0ca37dac 100644 --- a/extensions/AssetsManager/AssetsManager.cpp +++ b/extensions/AssetsManager/AssetsManager.cpp @@ -205,7 +205,11 @@ void AssetsManager::update() } // Check if there is a new version. - if (! checkUpdate()) return; + if (! checkUpdate()) + { + _isDownloading = false; + return; + } // Is package already downloaded? _downloadedVersion = UserDefault::getInstance()->getStringForKey(KEY_OF_DOWNLOADED_VERSION);