mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Error handled canvas closing
This commit is contained in:
parent
7e3c9e2197
commit
e3d8131698
1 changed files with 3 additions and 1 deletions
|
@ -1319,7 +1319,9 @@ impl CanvasRenderingContext2DMethods for CanvasRenderingContext2D {
|
||||||
|
|
||||||
impl Drop for CanvasRenderingContext2D {
|
impl Drop for CanvasRenderingContext2D {
|
||||||
fn drop(&mut self) {
|
fn drop(&mut self) {
|
||||||
self.ipc_renderer.send(CanvasMsg::Common(CanvasCommonMsg::Close)).unwrap();
|
if let Err(err) = self.ipc_renderer.send(CanvasMsg::Common(CanvasCommonMsg::Close)) {
|
||||||
|
warn!("Could not close canvas: {}", err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue