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
1 changed files with 2 additions and 2 deletions

View File

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