Merge pull request #3303 from minggo/develop

set _isDownloading to false before return
This commit is contained in:
minggo 2013-07-27 18:56:17 -07:00
commit 7159f3f97a
1 changed files with 5 additions and 1 deletions

View File

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