mirror of https://github.com/axmolengine/axmol.git
set _isDownloading to false before return
This commit is contained in:
parent
ca037cccee
commit
4f6e1fb944
|
@ -205,7 +205,11 @@ void AssetsManager::update()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if there is a new version.
|
// Check if there is a new version.
|
||||||
if (! checkUpdate()) return;
|
if (! checkUpdate())
|
||||||
|
{
|
||||||
|
_isDownloading = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Is package already downloaded?
|
// Is package already downloaded?
|
||||||
_downloadedVersion = UserDefault::getInstance()->getStringForKey(KEY_OF_DOWNLOADED_VERSION);
|
_downloadedVersion = UserDefault::getInstance()->getStringForKey(KEY_OF_DOWNLOADED_VERSION);
|
||||||
|
|
Loading…
Reference in New Issue