mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Auto merge of #6666 - glennw:exit-flag, r=larsbergstrom
Restore exit after load command line flag. Also updates glutin with a crash fix that was exposed by this patch. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6666) <!-- Reviewable:end -->
This commit is contained in:
commit
5ac80bff8e
6 changed files with 24 additions and 12 deletions
|
@ -183,7 +183,8 @@ impl<'a> LayoutContext<'a> {
|
|||
Err(state) => {
|
||||
// If we are emitting an output file, then we need to block on
|
||||
// image load or we risk emitting an output file missing the image.
|
||||
let is_sync = opts::get().output_file.is_some();
|
||||
let is_sync = opts::get().output_file.is_some() ||
|
||||
opts::get().exit_after_load;
|
||||
|
||||
match (state, is_sync) {
|
||||
// Image failed to load, so just return nothing
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue