diff --git a/cpp/src/mip_heuristics/diversity/population.cu b/cpp/src/mip_heuristics/diversity/population.cu index c2138c91cd..bca87223d9 100644 --- a/cpp/src/mip_heuristics/diversity/population.cu +++ b/cpp/src/mip_heuristics/diversity/population.cu @@ -179,9 +179,7 @@ void population_t::add_external_solution(const std::vector& solut template void population_t::add_external_solutions_to_population() { - // early exit to avoid taking the population lock - if (!solutions_in_external_queue_.load()) { return; } - + // don't do early exit checks here. mutex needs to be acquired to prevent race conditions auto new_sol_vector = get_external_solutions(); add_solutions_from_vec(std::move(new_sol_vector)); }