From 0078e6c3bbd0244d0de3e9bd9d771d297b012678 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Fri, 1 Jul 2016 12:15:51 +0200 Subject: [PATCH] Don't panic in LayoutThread::exit_now() if the paint thread is gone already. Fixes #11996. Fixes #12005. Fixes #12007. Fixes #12011. Fixes #12026. --- components/layout_thread/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/layout_thread/lib.rs b/components/layout_thread/lib.rs index b33a5c56eb1..e6b716751b7 100644 --- a/components/layout_thread/lib.rs +++ b/components/layout_thread/lib.rs @@ -772,7 +772,7 @@ impl LayoutThread { traversal.shutdown() } - self.paint_chan.send(LayoutToPaintMsg::Exit).unwrap(); + let _ = self.paint_chan.send(LayoutToPaintMsg::Exit); } fn handle_add_stylesheet<'a, 'b>(&self,