Silence occasional task failure that occurs from sending to the render task after it's shut down.

This commit is contained in:
Josh Matthews 2013-10-02 01:41:53 -04:00
parent bc81716c30
commit 499935b77e
2 changed files with 2 additions and 2 deletions

View file

@ -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();
}

View file

@ -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) {