Skip to content

Commit

Permalink
Remove STOPPING state handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Nov 1, 2019
1 parent 94bf6c6 commit 1376366
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions webxr/openxr/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,11 +323,6 @@ impl OpenXrDevice {
let event = self.instance.poll_event(&mut buffer).unwrap();
match event {
Some(SessionStateChanged(session_change)) => match session_change.state() {
openxr::SessionState::STOPPING => {
self.events.callback(Event::SessionEnd);
self.session.end().unwrap();
return false;
}
openxr::SessionState::EXITING | openxr::SessionState::LOSS_PENDING => {
break;
}
Expand Down

0 comments on commit 1376366

Please sign in to comment.