Core/MMaps: Fixed infinite wait in the generator

This commit is contained in:
Subv
2012-08-26 18:14:58 -05:00
parent 3e79dae545
commit a97cfbd2eb

View File

@@ -194,12 +194,13 @@ namespace MMAP
buildMap(mapID);
}
}
// Wait for all threads to finish before closing down
ACE_Thread_Manager::instance()->wait();
// Free memory
for (std::vector<BuilderThread*>::iterator _th = _threads.begin(); _th != _threads.end(); ++_th)
{
_th->wait();
delete *_th;
}
}
/**************************************************************************/