diff --git a/components/gfx/paint_task.rs b/components/gfx/paint_task.rs index 5fdacfa838d..99e1454e945 100644 --- a/components/gfx/paint_task.rs +++ b/components/gfx/paint_task.rs @@ -224,7 +224,7 @@ impl PaintTask where C: PaintListener + Send { debug!("paint_task: shutdown_chan send"); shutdown_chan.send(()); - }, ConstellationMsg::Failure(failure_msg), c, true); + }, ConstellationMsg::Failure(failure_msg), c); } fn start(&mut self) { diff --git a/components/layout/layout_task.rs b/components/layout/layout_task.rs index 3309ff9c28b..e64ea0f1d22 100644 --- a/components/layout/layout_task.rs +++ b/components/layout/layout_task.rs @@ -202,7 +202,7 @@ impl LayoutTaskFactory for LayoutTask { layout.start(); } shutdown_chan.send(()); - }, ConstellationMsg::Failure(failure_msg), con_chan, false); + }, ConstellationMsg::Failure(failure_msg), con_chan); } } diff --git a/components/script/script_task.rs b/components/script/script_task.rs index 2b192c75587..88e6ed860a5 100644 --- a/components/script/script_task.rs +++ b/components/script/script_task.rs @@ -314,7 +314,7 @@ impl ScriptTaskFactory for ScriptTask { // This must always be the very last operation performed before the task completes failsafe.neuter(); - }, ConstellationMsg::Failure(failure_msg), const_chan, false); + }, ConstellationMsg::Failure(failure_msg), const_chan); } } diff --git a/components/util/task.rs b/components/util/task.rs index 5907841e434..2962880aee0 100644 --- a/components/util/task.rs +++ b/components/util/task.rs @@ -25,8 +25,7 @@ pub fn spawn_named_with_send_on_failure(name: &'static str, state: task_state::TaskState, f: proc(): Send, msg: T, - dest: Sender, - _native: bool) { + dest: Sender) { let future_result = TaskBuilder::new().named(name).try_future(proc() { task_state::initialize(state); rtinstrument::instrument(f);