1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-18 13:55:23 -05:00

Fix panic when closing window

Resolves #81.
This commit is contained in:
Joe Wilm 2017-01-06 11:22:47 -08:00
parent 99ef2bef9e
commit 8d3f5f4e17

View file

@ -129,8 +129,8 @@ impl<N: Notify> Processor<N> {
.expect("write size.json"); .expect("write size.json");
} }
// FIXME // FIXME should do a more graceful shutdown
panic!("window closed"); ::std::process::exit(0);
}, },
glutin::Event::Resized(w, h) => { glutin::Event::Resized(w, h) => {
resize_tx.send((w, h)).expect("send new size"); resize_tx.send((w, h)).expect("send new size");