Skip to content

Commit

Permalink
fix(cmd_all): abort dashboard task on exit (#15890)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwannoel authored Mar 25, 2024
1 parent 7f81f9d commit 1628b87
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/meta/node/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -862,8 +862,7 @@ pub async fn start_service_as_election_leader(

#[cfg(not(madsim))]
if let Some(dashboard_task) = dashboard_task {
// Join the task while ignoring the cancellation error.
let _ = dashboard_task.await;
dashboard_task.abort();
}
Ok(())
}
Expand Down

0 comments on commit 1628b87

Please sign in to comment.