forked from ROMEO/nexosim
Changes after review.
This commit is contained in:
parent
2e58288b04
commit
fea1ccc1c4
@ -123,9 +123,9 @@ fn main() -> Result<(), SimulationError> {
|
|||||||
|
|
||||||
// Stop the simulation.
|
// Stop the simulation.
|
||||||
scheduler.halt();
|
scheduler.halt();
|
||||||
Ok(match simulation_handle.join().unwrap() {
|
match simulation_handle.join().unwrap() {
|
||||||
Err(ExecutionError::Halted) => Ok(()),
|
Err(ExecutionError::Halted) => Ok(()),
|
||||||
Err(e) => Err(e),
|
Err(e) => Err(e.into()),
|
||||||
_ => Ok(()),
|
_ => Ok(()),
|
||||||
}?)
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user