mirror of https://codeberg.org/topola/topola.git
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:
parent
7bb1a1efbc
commit
cc6065099b
|
|
@ -319,6 +319,12 @@ where
|
||||||
// No need to add neighbors that we have already reached through a
|
// No need to add neighbors that we have already reached through a
|
||||||
// shorter path than now.
|
// shorter path than now.
|
||||||
if *entry.get() <= next_score {
|
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(
|
self.state = ThetastarState::VisitingProbeOnNavedge(
|
||||||
visited_navnode,
|
visited_navnode,
|
||||||
curr_navedge,
|
curr_navedge,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue