From ec1ab223c2749926426e213c50cf690d56d1db67 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Wed, 8 Jun 2016 16:27:57 +0200 Subject: [PATCH] Create some channels on the constellation thread. --- components/constellation/constellation.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/components/constellation/constellation.rs b/components/constellation/constellation.rs index aea7092b0df..cdf66a006fb 100644 --- a/components/constellation/constellation.rs +++ b/components/constellation/constellation.rs @@ -308,18 +308,18 @@ impl Constellation STF: ScriptThreadFactory { pub fn start(state: InitialConstellationState) -> Sender { - let (ipc_script_sender, ipc_script_receiver) = ipc::channel().expect("ipc channel failure"); - let script_receiver = ROUTER.route_ipc_receiver_to_new_mpsc_receiver(ipc_script_receiver); - - let (ipc_layout_sender, ipc_layout_receiver) = ipc::channel().expect("ipc channel failure"); - let layout_receiver = ROUTER.route_ipc_receiver_to_new_mpsc_receiver(ipc_layout_receiver); - - let (ipc_panic_sender, ipc_panic_receiver) = ipc::channel().expect("ipc channel failure"); - let panic_receiver = ROUTER.route_ipc_receiver_to_new_mpsc_receiver(ipc_panic_receiver); - let (compositor_sender, compositor_receiver) = channel(); spawn_named("Constellation".to_owned(), move || { + let (ipc_script_sender, ipc_script_receiver) = ipc::channel().expect("ipc channel failure"); + let script_receiver = ROUTER.route_ipc_receiver_to_new_mpsc_receiver(ipc_script_receiver); + + let (ipc_layout_sender, ipc_layout_receiver) = ipc::channel().expect("ipc channel failure"); + let layout_receiver = ROUTER.route_ipc_receiver_to_new_mpsc_receiver(ipc_layout_receiver); + + let (ipc_panic_sender, ipc_panic_receiver) = ipc::channel().expect("ipc channel failure"); + let panic_receiver = ROUTER.route_ipc_receiver_to_new_mpsc_receiver(ipc_panic_receiver); + let mut constellation: Constellation = Constellation { script_sender: ipc_script_sender, layout_sender: ipc_layout_sender,