Skip to content

Commit

Permalink
Don't panic when tearing down a WebGL context and the thead is unreac…
Browse files Browse the repository at this point in the history
…hable.

This avoids some cascading double-panics when there are errors in the WebGL rendering thread.
  • Loading branch information
jdm committed May 29, 2018
1 parent 7cc4165 commit b1202cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/script/dom/webglrenderingcontext.rs
Expand Up @@ -1193,7 +1193,7 @@ impl WebGLRenderingContext {

impl Drop for WebGLRenderingContext {
fn drop(&mut self) {
self.webgl_sender.send_remove().unwrap();
let _ = self.webgl_sender.send_remove();
}
}

Expand Down

0 comments on commit b1202cf

Please sign in to comment.