Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/main_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,8 @@ impl MainLoop {
// a new session has been started via the discovery stream
_ = self.credentials_provider.incoming_connection() => {
let _ = shared_spirc.shutdown();
// Ensure the current spirc task finishes cleanly before switching sessions
let _ = (&mut spirc_task).await;
break;
}
// the program should shut down
Expand Down
Loading