mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Exit Canvas paint thread on shutdown
This commit is contained in:
parent
b19f9d9c5b
commit
cdf22c1493
3 changed files with 7 additions and 0 deletions
|
@ -1441,6 +1441,11 @@ where
|
|||
}
|
||||
}
|
||||
|
||||
debug!("Exiting Canvas Paint thread.");
|
||||
if let Err(e) = self.canvas_chan.send(CanvasMsg::Exit) {
|
||||
warn!("Exit Canvas Paint thread failed ({})", e);
|
||||
}
|
||||
|
||||
if let Some(webgl_threads) = self.webgl_threads.as_ref() {
|
||||
debug!("Exiting WebGL thread.");
|
||||
if let Err(e) = webgl_threads.exit() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue