mirror of
https://github.com/servo/servo.git
synced 2025-06-10 01:23:13 +00:00
Ignore CollectReport messages when shutting down the LayoutTask.
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.
This commit is contained in:
parent
fdeebf86a1
commit
67e7436cb8
1 changed files with 4 additions and 2 deletions
|
@ -601,9 +601,11 @@ impl LayoutTask {
|
|||
self.exit_now(possibly_locked_rw_data, exit_type);
|
||||
break
|
||||
}
|
||||
Msg::CollectReports(_) => {
|
||||
// Just ignore these messages at this point.
|
||||
}
|
||||
_ => {
|
||||
panic!("layout: message that wasn't `ExitNow` received after \
|
||||
`PrepareToExitMsg`")
|
||||
panic!("layout: unexpected message received after `PrepareToExitMsg`")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue