Skip to content

Commit

Permalink
exit the correct evicted pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Kuehn committed Sep 24, 2013
1 parent d6769de commit d77a073
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/components/main/constellation.rs
Expand Up @@ -770,12 +770,13 @@ impl Constellation {
match navigation_type {
constellation_msg::Load => {
let evicted = self.navigation_context.load(frame_tree);
let mut exited = HashSet::new();
// exit any pipelines that don't exist outside the evicted frame trees
for frame_tree in evicted.iter() {
// exit any pipelines that don't exist outside the evicted frame trees
for frame in frame_tree.iter() {
if !self.navigation_context.contains(frame.pipeline.id) {
frame_tree.pipeline.exit();
self.pipelines.remove(&frame_tree.pipeline.id);
for @FrameTree { pipeline, _ } in frame_tree.iter() {
if !self.navigation_context.contains(pipeline.id) {
pipeline.exit();
self.pipelines.remove(&pipeline.id);
}
}
}
Expand Down

0 comments on commit d77a073

Please sign in to comment.