Skip to content

Commit

Permalink
fix(macos): application crashes on exit
Browse files Browse the repository at this point in the history
  • Loading branch information
maxjoehnk committed Jun 29, 2024
1 parent e185f26 commit b7610f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/ui/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ impl LifecycleHandler for ContextRef {
fn shutdown(self) {
// TODO: this is no clean exit.
self.run_loop.borrow().stop();
self.engine_manager.borrow_mut().shut_down().unwrap();
if cfg!(not(target_os = "macos")) {
self.engine_manager.borrow_mut().shut_down().unwrap();
}
}
}

Expand Down

0 comments on commit b7610f1

Please sign in to comment.