Fixed crash in read manager

This commit is contained in:
r.kuznetsov 2018-03-06 12:09:18 +03:00 committed by Daria Volvenkova
parent a0e432bf68
commit b72ad9601c

View file

@ -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();
}