Skip to content

Commit

Permalink
Exit WebVR thread when constellation ends
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro committed Nov 28, 2016
1 parent 3dba89d commit 0ab6182
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions components/constellation/constellation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1217,6 +1217,13 @@ impl<Message, LTF, STF> Constellation<Message, LTF, STF>
}
}

if let Some(chan) = self.webvr_thread.as_ref() {
debug!("Exiting WebVR thread.");
if let Err(e) = chan.send(WebVRMsg::Exit) {
warn!("Exit WebVR thread failed ({})", e);
}
}

debug!("Exiting font cache thread.");
self.font_cache_thread.exit();

Expand Down

0 comments on commit 0ab6182

Please sign in to comment.