diff --git a/CHANGELOG.md b/CHANGELOG.md index 5aeaeaa9..d30af4f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # Unreleased +- On macOS, fix application termination on `ControlFlow::Exit` + # 0.20.0 Alpha 4 (2019-10-18) - Add web support via the 'stdweb' or 'web-sys' features diff --git a/src/platform_impl/macos/app_state.rs b/src/platform_impl/macos/app_state.rs index d063fe84..bc585a52 100644 --- a/src/platform_impl/macos/app_state.rs +++ b/src/platform_impl/macos/app_state.rs @@ -275,7 +275,7 @@ impl AppState { HANDLER.set_in_callback(false); } if HANDLER.should_exit() { - let _: () = unsafe { msg_send![NSApp(), stop: nil] }; + let _: () = unsafe { msg_send![NSApp(), terminate: nil] }; return; } HANDLER.update_start_time();