Wait for any layout tasks to complete in a page tree before a handling a pipeline's exit message.

This commit is contained in:
Josh Matthews 2013-10-01 21:39:31 -04:00
parent be5deb2a68
commit 92f6599854

View file

@ -629,7 +629,9 @@ impl ScriptTask {
}
}
fn handle_exit_window_msg(&mut self, _id: PipelineId) -> bool {
fn handle_exit_window_msg(&mut self, id: PipelineId) -> bool {
self.handle_exit_pipeline_msg(id);
// TODO(tkuehn): currently there is only one window,
// so this can afford to be naive and just shut down the
// compositor. In the future it'll need to be smarter.