Also handle the exit after load and output file cases for ref tests

This commit is contained in:
Lars Bergstrom 2014-01-15 15:54:47 -06:00
parent 6d3429ad03
commit 9ac2f5fd9b

View file

@ -663,14 +663,16 @@ impl IOCompositor {
let res = png::store_png(&img, &path);
assert!(res.is_ok());
self.done = true;
debug!("shutting down the constellation after generating an output file");
self.constellation_chan.send(ExitMsg);
}
self.window.present();
let exit = self.opts.exit_after_load;
if exit {
self.done = true;
debug!("shutting down the constellation for exit_after_load");
self.constellation_chan.send(ExitMsg);
}
}