mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-08-03 14:49:04 +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 => {
|
Msg::UpdateView => {
|
||||||
match &mut self.monado_runner {
|
match &mut self.monado_runner {
|
||||||
None => {}
|
None => {}
|
||||||
Some(runner) => match runner.status() {
|
Some(runner) => {
|
||||||
RunnerStatus::Running => {
|
let n_rows = runner.consume_rows();
|
||||||
self.monado_log.extend(runner.consume_rows());
|
if !n_rows.is_empty() {
|
||||||
|
self.monado_log.extend(n_rows);
|
||||||
self.debug_view
|
self.debug_view
|
||||||
.sender()
|
.sender()
|
||||||
.emit(DebugViewMsg::LogUpdated(self.monado_log.clone()));
|
.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 {
|
match &mut self.build_pipeline {
|
||||||
None => {}
|
None => {}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue