diff --git a/src/bin/topola-egui/top.rs b/src/bin/topola-egui/top.rs index 7727e9b..a341d57 100644 --- a/src/bin/topola-egui/top.rs +++ b/src/bin/topola-egui/top.rs @@ -129,14 +129,14 @@ impl Top { Err(err) => return, }; + if let InvokerStatus::Finished = status { + break; + } + if let Execute::Autoroute(ref mut autoroute) = execute { shared_data_arc_mutex.lock().unwrap().navmesh = autoroute.navmesh().clone(); } - - if let InvokerStatus::Finished = status { - break; - } }; }); }