set _isDownloading to false before return

This commit is contained in:
minggo 2013-07-28 09:53:59 +08:00
parent ca037cccee
commit 4f6e1fb944
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);