aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r--components/script/script_thread.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs
index 54724914688..107902b88ee 100644
--- a/components/script/script_thread.rs
+++ b/components/script/script_thread.rs
@@ -1966,7 +1966,7 @@ fn shut_down_layout(page_tree: &Rc<Page>) {
// processed this message.
let (response_chan, response_port) = channel();
let window = page.window();
- let LayoutChan(chan) = window.layout_chan();
+ let LayoutChan(chan) = window.layout_chan().clone();
if chan.send(layout_interface::Msg::PrepareToExit(response_chan)).is_ok() {
channels.push(chan);
response_port.recv().unwrap();