mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Auto merge of #6335 - nnethercote:fix-layout-task-shutdown-panic, r=metajack
Prior to this change, a panic would occur if a CollectReport message was received while the LayoutTask was shutting down. Now it just gets ignored. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6335) <!-- Reviewable:end -->
This commit is contained in:
commit
74ef31cfc4
1 changed files with 4 additions and 2 deletions
|
@ -601,9 +601,11 @@ impl LayoutTask {
|
||||||
self.exit_now(possibly_locked_rw_data, exit_type);
|
self.exit_now(possibly_locked_rw_data, exit_type);
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
Msg::CollectReports(_) => {
|
||||||
|
// Just ignore these messages at this point.
|
||||||
|
}
|
||||||
_ => {
|
_ => {
|
||||||
panic!("layout: message that wasn't `ExitNow` received after \
|
panic!("layout: unexpected message received after `PrepareToExitMsg`")
|
||||||
`PrepareToExitMsg`")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue