diff --git a/src/main.rs b/src/main.rs index 1467c177..11574d92 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1762,6 +1762,9 @@ async fn main() { // Continue shutdown in its own task tokio::spawn(spirc_task); } + if !session.is_invalid() { + session.shutdown(); + } connecting = true; },