mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-30 09:36:43 +00:00
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()
|
CellPreloader::~CellPreloader()
|
||||||
{
|
{
|
||||||
for (PreloadMap::iterator it = mPreloadCells.begin(); it != mPreloadCells.end();++it)
|
for (PreloadMap::iterator it = mPreloadCells.begin(); it != mPreloadCells.end();++it)
|
||||||
{
|
|
||||||
it->second.mWorkItem->abort();
|
it->second.mWorkItem->abort();
|
||||||
|
|
||||||
|
for (PreloadMap::iterator it = mPreloadCells.begin(); it != mPreloadCells.end();++it)
|
||||||
it->second.mWorkItem->waitTillDone();
|
it->second.mWorkItem->waitTillDone();
|
||||||
}
|
|
||||||
mPreloadCells.clear();
|
mPreloadCells.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue