cellpreloader: abort all tasks first before waiting

0.6.1
scrawl 8 years ago
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…
Cancel
Save