From b1202cfa9fe509e4e1a434ce74923368632e211d Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Tue, 29 May 2018 15:26:39 -0400 Subject: [PATCH] Don't panic when tearing down a WebGL context and the thead is unreachable. This avoids some cascading double-panics when there are errors in the WebGL rendering thread. --- components/script/dom/webglrenderingcontext.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/script/dom/webglrenderingcontext.rs b/components/script/dom/webglrenderingcontext.rs index fe46e53f6d8e..85c6c981b1a7 100644 --- a/components/script/dom/webglrenderingcontext.rs +++ b/components/script/dom/webglrenderingcontext.rs @@ -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(); } }