fixed calling unwrap on an Err value

This commit is contained in:
Ashwin R 2016-08-27 07:37:12 +05:30
parent 3e2753cbc9
commit 41accc283d

View file

@ -2201,7 +2201,7 @@ fn shut_down_layout(context_tree: &BrowsingContext) {
let chan = window.layout_chan().clone();
if chan.send(message::Msg::PrepareToExit(response_chan)).is_ok() {
channels.push(chan);
response_port.recv().unwrap();
let _ = response_port.recv();
}
}