Add comments in main loop

This commit is contained in:
Joe Wilm 2016-12-04 15:48:12 -08:00
parent 43397cefec
commit 61c1e37c46
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}