From 61983323ae520372282f96b7e33ab7902dacc16b Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Thu, 5 Nov 2015 14:20:25 +0100 Subject: [PATCH] Reorder LayoutTask::exit_now for clarity. --- components/layout/layout_task.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/layout/layout_task.rs b/components/layout/layout_task.rs index c86ecdedaff..5394aa178f5 100644 --- a/components/layout/layout_task.rs +++ b/components/layout/layout_task.rs @@ -731,8 +731,6 @@ impl LayoutTask { fn exit_now<'a>(&'a self, possibly_locked_rw_data: &mut Option>, exit_type: PipelineExitType) { - let (response_chan, response_port) = ipc::channel().unwrap(); - { let mut rw_data = self.lock_rw_data(possibly_locked_rw_data); if let Some(ref mut traversal) = (&mut *rw_data).parallel_traversal { @@ -741,6 +739,7 @@ impl LayoutTask { LayoutTask::return_rw_data(possibly_locked_rw_data, rw_data); } + let (response_chan, response_port) = ipc::channel().unwrap(); self.paint_chan.send(LayoutToPaintMsg::Exit(Some(response_chan), exit_type)).unwrap(); response_port.recv().unwrap() }