mirror of
https://github.com/figsoda/mmtc
synced 2024-11-21 22:53:02 +00:00
fix hang after quitting
This commit is contained in:
parent
c3d784730c
commit
3e3b9cc22e
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue