diff --git a/src/main.rs b/src/main.rs index afac70c..a3edbf9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -309,10 +309,11 @@ async fn run_with_tui( ratatui::try_init().wrap_err("failed to initialize ratatui")?; let terminal_guard = tui::RatatuiRestoreGuard; - let (tx, rx) = tokio::sync::mpsc::unbounded_channel(); let token = tokio_util::sync::CancellationToken::new(); tokio::spawn(watch_signals(token.clone())); + let (tx, rx) = tokio::sync::mpsc::unbounded_channel(); + tokio::try_join!( main_task(config, token.clone(), tx.clone()), async move {