From 2a52351de0b16dfe5daa0956a6301949bdff7ca6 Mon Sep 17 00:00:00 2001 From: Alan Jeffrey Date: Tue, 26 Apr 2016 14:32:11 -0500 Subject: [PATCH] Don't kill the root pipeline when randomly killing pipelines. --- components/compositing/constellation.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/compositing/constellation.rs b/components/compositing/constellation.rs index 9e4db68f7ac..6702d20821f 100644 --- a/components/compositing/constellation.rs +++ b/components/compositing/constellation.rs @@ -1862,6 +1862,8 @@ impl Constellation if let Some((ref mut rng, _)) = self.random_pipeline_closure { if let Some(pipeline_id) = rng.choose(&*pipeline_ids) { if let Some(pipeline) = self.pipelines.get(pipeline_id) { + // Don't kill the root pipeline + if pipeline.parent_info.is_none() { return; } // Note that we deliberately do not do any of the tidying up // associated with closing a pipeline. The constellation should cope! info!("Randomly closing pipeline {}.", pipeline_id);