forked from organicmaps/organicmaps-tmp
Fixed crash in read manager
This commit is contained in:
parent
a0e432bf68
commit
b72ad9601c
1 changed files with 2 additions and 4 deletions
|
@ -286,10 +286,8 @@ void ReadManager::CheckFinishedTiles(TTileInfoCollection const & requestedTiles,
|
|||
|
||||
void ReadManager::CancelTileInfo(std::shared_ptr<TileInfo> const & tileToCancel)
|
||||
{
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(m_finishedTilesMutex);
|
||||
m_activeTiles.erase(tileToCancel->GetTileKey());
|
||||
}
|
||||
std::lock_guard<std::mutex> lock(m_finishedTilesMutex);
|
||||
m_activeTiles.erase(tileToCancel->GetTileKey());
|
||||
tileToCancel->Cancel();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue