From 79d4223be4c3798e8b56bb57bbdeccbb882894b5 Mon Sep 17 00:00:00 2001 From: Marc Gilleron Date: Thu, 23 Dec 2021 23:55:43 +0100 Subject: [PATCH] Fix deadlock caused by read locks not being released --- terrain/voxel_lod_terrain.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/terrain/voxel_lod_terrain.cpp b/terrain/voxel_lod_terrain.cpp index c38f003c..e99a687f 100644 --- a/terrain/voxel_lod_terrain.cpp +++ b/terrain/voxel_lod_terrain.cpp @@ -619,7 +619,6 @@ VoxelSingleValue VoxelLodTerrain::get_voxel(Vector3i pos, unsigned int channel, Vector3i voxel_pos = pos; for (unsigned int lod_index = 0; lod_index < _lod_count; ++lod_index) { const VoxelDataLodMap::Lod &data_lod = _data->lods[lod_index]; - data_lod.map_lock.read_lock(); std::shared_ptr voxels = try_get_voxel_buffer_with_lock(data_lod, block_pos); if (voxels != nullptr) { return get_voxel_with_lock(*voxels, data_lod.map.to_local(voxel_pos), channel);