Skip to content

Commit 0ab6182

Browse files
committed
Exit WebVR thread when constellation ends
1 parent 3dba89d commit 0ab6182

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

components/constellation/constellation.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,6 +1217,13 @@ impl<Message, LTF, STF> Constellation<Message, LTF, STF>
12171217
}
12181218
}
12191219

1220+
if let Some(chan) = self.webvr_thread.as_ref() {
1221+
debug!("Exiting WebVR thread.");
1222+
if let Err(e) = chan.send(WebVRMsg::Exit) {
1223+
warn!("Exit WebVR thread failed ({})", e);
1224+
}
1225+
}
1226+
12201227
debug!("Exiting font cache thread.");
12211228
self.font_cache_thread.exit();
12221229

0 commit comments

Comments
 (0)