mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-04-20 11:35:48 +00:00
fix: handle crashing or fast exiting monado-service properly (#9)
This commit is contained in:
parent
02eb266e8f
commit
a97560d0d1
1 changed files with 11 additions and 5 deletions
|
@ -141,15 +141,21 @@ impl SimpleComponent for App {
|
|||
Msg::UpdateView => {
|
||||
match &mut self.monado_runner {
|
||||
None => {}
|
||||
Some(runner) => match runner.status() {
|
||||
RunnerStatus::Running => {
|
||||
self.monado_log.extend(runner.consume_rows());
|
||||
Some(runner) => {
|
||||
let n_rows = runner.consume_rows();
|
||||
if !n_rows.is_empty() {
|
||||
self.monado_log.extend(n_rows);
|
||||
self.debug_view
|
||||
.sender()
|
||||
.emit(DebugViewMsg::LogUpdated(self.monado_log.clone()));
|
||||
}
|
||||
_ => {}
|
||||
},
|
||||
match runner.status() {
|
||||
RunnerStatus::Running => {},
|
||||
RunnerStatus::Stopped => {
|
||||
self.main_view.sender().emit(MainViewMsg::MonadoActiveChanged(false));
|
||||
}
|
||||
};
|
||||
}
|
||||
};
|
||||
match &mut self.build_pipeline {
|
||||
None => {}
|
||||
|
|
Loading…
Add table
Reference in a new issue