From 61c1e37c4652e3668546f4d332d31f24a8eea7bb Mon Sep 17 00:00:00 2001 From: Joe Wilm Date: Sun, 4 Dec 2016 15:48:12 -0800 Subject: [PATCH] Add comments in main loop --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index c619a66b..bfe9d769 100644 --- a/src/main.rs +++ b/src/main.rs @@ -246,6 +246,7 @@ fn main() { // Wait for something to happen processor.process_events(&window); + // Handle config reloads if let Ok(config) = config_rx.try_recv() { display.update_config(&config); processor.update_config(&config); @@ -258,6 +259,7 @@ fn main() { display.draw(terminal, &config); } + // Begin shutdown if the flag was raised. if process_should_exit() { break; }