summaryrefslogtreecommitdiff
path: root/examples/doom/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/doom/src/main.rs')
-rw-r--r--examples/doom/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/doom/src/main.rs b/examples/doom/src/main.rs
index c5e49b5..a8e98ef 100644
--- a/examples/doom/src/main.rs
+++ b/examples/doom/src/main.rs
@@ -129,7 +129,7 @@ impl ApplicationHandler for DoomApp {
window.request_redraw();
}
- if self.runtime.host_state.lock().unwrap().exit_code.is_some() {
+ if self.runtime.exited() {
event_loop.exit();
}
}