fix hang after quitting

This commit is contained in:
figsoda 2020-10-31 14:04:36 -04:00
parent c3d784730c
commit 3e3b9cc22e

View file

@ -57,6 +57,7 @@ async fn main() {
eprintln!("{:?}", e);
exit(1);
}
exit(0);
}
async fn run() -> Result<()> {
@ -135,7 +136,7 @@ async fn run() -> Result<()> {
while let Some(cmd) = rx.recv().await {
match cmd {
Command::Quit => return Ok(()),
Command::Quit => break,
Command::UpdateFrame => term
.draw(|frame| {
layout::render(frame, frame.size(), &cfg.layout, &queue, &status);