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:
Emilio Cobos Álvarez 2016-05-13 01:10:46 +02:00
parent 1e8ddba3e8
commit f6434a9790
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -438,8 +438,8 @@ impl FontCacheThread {
pub fn exit(&self) {
let (response_chan, response_port) = ipc::channel().unwrap();
self.chan.send(Command::Exit(response_chan)).unwrap();
response_port.recv().unwrap();
self.chan.send(Command::Exit(response_chan)).expect("Couldn't send FontCacheThread exit message");
response_port.recv().expect("Couldn't receive FontCacheThread reply");
}
}