mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-07 12:54:00 +00:00
cellpreloader: abort all tasks first before waiting
This commit is contained in:
parent
5f76317807
commit
b898315962
@ -198,10 +198,11 @@ namespace MWWorld
|
||||
CellPreloader::~CellPreloader()
|
||||
{
|
||||
for (PreloadMap::iterator it = mPreloadCells.begin(); it != mPreloadCells.end();++it)
|
||||
{
|
||||
it->second.mWorkItem->abort();
|
||||
|
||||
for (PreloadMap::iterator it = mPreloadCells.begin(); it != mPreloadCells.end();++it)
|
||||
it->second.mWorkItem->waitTillDone();
|
||||
}
|
||||
|
||||
mPreloadCells.clear();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user