mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Silence occasional task failure that occurs from sending to the render task after it's shut down.
This commit is contained in:
parent
bc81716c30
commit
499935b77e
2 changed files with 2 additions and 2 deletions
|
@ -801,7 +801,7 @@ impl Constellation {
|
|||
fn set_ids(&self, frame_tree: @mut FrameTree) {
|
||||
let (port, chan) = comm::stream();
|
||||
self.compositor_chan.send(SetIds(frame_tree.to_sendable(), chan, self.chan.clone()));
|
||||
port.recv();
|
||||
port.try_recv();
|
||||
for frame in frame_tree.iter() {
|
||||
frame.pipeline.grant_paint_permission();
|
||||
}
|
||||
|
|
|
@ -200,7 +200,7 @@ impl Pipeline {
|
|||
}
|
||||
|
||||
pub fn grant_paint_permission(&self) {
|
||||
self.render_chan.send(PaintPermissionGranted);
|
||||
self.render_chan.try_send(PaintPermissionGranted);
|
||||
}
|
||||
|
||||
pub fn revoke_paint_permission(&self) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue