fix(router/thetastar): Don't forget to rm. probe when there's shorter path already

This fixes a fatal race condition that made tht_de9_to_tht_de9 always
fail since 7eff7ad9f0a24a9688ab5235f01115f7c85b1ff4.
This commit is contained in:
Mikolaj Wielgus 2025-08-16 23:30:11 +02:00
parent 7bb1a1efbc
commit cc6065099b
1 changed files with 6 additions and 0 deletions

View File

@ -319,6 +319,12 @@ where
// No need to add neighbors that we have already reached through a
// shorter path than now.
if *entry.get() <= next_score {
// We just remove the probe instantly
// here instead of doing it in
// ThetastarState::Probing or a new
// state to avoid complicating.
strategy.remove_probe(&self.graph);
self.state = ThetastarState::VisitingProbeOnNavedge(
visited_navnode,
curr_navedge,