Shut down the profiler in headless compositing mode

This commit is contained in:
Patrick Walton 2014-02-20 22:15:44 -08:00
parent 65191b0d63
commit 509cc3cb3a
3 changed files with 16 additions and 7 deletions

View file

@ -235,7 +235,7 @@ impl ImageResponder for LayoutImageResponder {
let id = self.id.clone();
let script_chan = self.script_chan.clone();
let f: proc(ImageResponseMsg) = proc(_) {
script_chan.send(SendEventMsg(id.clone(), ReflowEvent))
drop(script_chan.try_send(SendEventMsg(id.clone(), ReflowEvent)))
};
f
}
@ -392,6 +392,7 @@ impl LayoutTask {
}
}
ExitNowMsg => {
debug!("layout task is exiting...");
self.exit_now();
break
}