mirror of
https://github.com/glest/glest-source.git
synced 2025-10-03 02:41:50 +02:00
bugfix when shutting down after visiting internet menu
This commit is contained in:
@@ -153,13 +153,15 @@ static void cleanupProcessObjects() {
|
|||||||
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||||
|
|
||||||
SystemFlags::Close();
|
SystemFlags::Close();
|
||||||
|
SystemFlags::SHUTDOWN_PROGRAM_MODE=true;
|
||||||
|
|
||||||
printf("running threads = %lu\n",Thread::getThreadList().size());
|
printf("start running threads = %lu\n",Thread::getThreadList().size());
|
||||||
time_t elapsed = time(NULL);
|
time_t elapsed = time(NULL);
|
||||||
for(;Thread::getThreadList().size() > 0 &&
|
for(;Thread::getThreadList().size() > 0 &&
|
||||||
difftime(time(NULL),elapsed) <= 10;) {
|
difftime(time(NULL),elapsed) <= 10;) {
|
||||||
//sleep(0);
|
//sleep(0);
|
||||||
}
|
}
|
||||||
|
printf("end running threads = %lu\n",Thread::getThreadList().size());
|
||||||
|
|
||||||
std::map<int,Texture2D *> &crcPlayerTextureCache = CacheManager::getCachedItem< std::map<int,Texture2D *> >(GameConstants::playerTextureCacheLookupKey);
|
std::map<int,Texture2D *> &crcPlayerTextureCache = CacheManager::getCachedItem< std::map<int,Texture2D *> >(GameConstants::playerTextureCacheLookupKey);
|
||||||
//deleteMapValues(crcPlayerTextureCache.begin(),crcPlayerTextureCache.end());
|
//deleteMapValues(crcPlayerTextureCache.begin(),crcPlayerTextureCache.end());
|
||||||
@@ -179,7 +181,7 @@ static void cleanupProcessObjects() {
|
|||||||
XmlIo::getInstance().cleanup();
|
XmlIo::getInstance().cleanup();
|
||||||
|
|
||||||
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||||
SystemFlags::SHUTDOWN_PROGRAM_MODE=true;
|
|
||||||
|
|
||||||
SystemFlags::globalCleanupHTTP();
|
SystemFlags::globalCleanupHTTP();
|
||||||
CacheManager::cleanupMutexes();
|
CacheManager::cleanupMutexes();
|
||||||
|
Reference in New Issue
Block a user