forked from teamnwah/openmw-tes3coop
cellpreloader: abort all tasks first before waiting
This commit is contained in:
parent
5f76317807
commit
b898315962
1 changed files with 3 additions and 2 deletions
|
@ -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 a new issue