mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
gfx: Add expect messages to FontCacheThread::exit()
One of these two unwraps is the one that is causing most occurrences of #8815. I'd go with removing the second unwrap entirely, but let's get some debug info first, since it might probably be a race.
This commit is contained in:
parent
1e8ddba3e8
commit
f6434a9790
1 changed files with 2 additions and 2 deletions
|
@ -438,8 +438,8 @@ impl FontCacheThread {
|
||||||
|
|
||||||
pub fn exit(&self) {
|
pub fn exit(&self) {
|
||||||
let (response_chan, response_port) = ipc::channel().unwrap();
|
let (response_chan, response_port) = ipc::channel().unwrap();
|
||||||
self.chan.send(Command::Exit(response_chan)).unwrap();
|
self.chan.send(Command::Exit(response_chan)).expect("Couldn't send FontCacheThread exit message");
|
||||||
response_port.recv().unwrap();
|
response_port.recv().expect("Couldn't receive FontCacheThread reply");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue