mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Shut down the profiler in headless compositing mode
This commit is contained in:
parent
65191b0d63
commit
509cc3cb3a
3 changed files with 16 additions and 7 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue