From 8d3f5f4e179b6fe55617dc72fe60fa1bdfd9b014 Mon Sep 17 00:00:00 2001 From: Joe Wilm Date: Fri, 6 Jan 2017 11:22:47 -0800 Subject: [PATCH] Fix panic when closing window Resolves #81. --- src/event.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/event.rs b/src/event.rs index 88f28952..66abbaa2 100644 --- a/src/event.rs +++ b/src/event.rs @@ -129,8 +129,8 @@ impl Processor { .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");