mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Reduce channel cloning.
This commit is contained in:
parent
207be7d2e2
commit
897be5f6ee
13 changed files with 38 additions and 38 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue