mirror of
https://github.com/figsoda/mmtc
synced 2025-02-16 13:28:33 +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);
|
eprintln!("{:?}", e);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn run() -> Result<()> {
|
async fn run() -> Result<()> {
|
||||||
|
@ -135,7 +136,7 @@ async fn run() -> Result<()> {
|
||||||
|
|
||||||
while let Some(cmd) = rx.recv().await {
|
while let Some(cmd) = rx.recv().await {
|
||||||
match cmd {
|
match cmd {
|
||||||
Command::Quit => return Ok(()),
|
Command::Quit => break,
|
||||||
Command::UpdateFrame => term
|
Command::UpdateFrame => term
|
||||||
.draw(|frame| {
|
.draw(|frame| {
|
||||||
layout::render(frame, frame.size(), &cfg.layout, &queue, &status);
|
layout::render(frame, frame.size(), &cfg.layout, &queue, &status);
|
||||||
|
|
Loading…
Add table
Reference in a new issue