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:
Nicholas Nethercote 2015-06-10 21:18:39 -07:00
parent fdeebf86a1
commit 67e7436cb8

View file

@ -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`")
} }
} }
} }