mirror of https://github.com/axmolengine/axmol.git
Merge pull request #3303 from minggo/develop
set _isDownloading to false before return
This commit is contained in:
commit
7159f3f97a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue