mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 08:28:32 +01:00
Core/MMaps: Fixed infinite wait in the generator
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/**************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user