Skip to content

Commit

Permalink
Add ability to cancel shutdown (#3820)
Browse files Browse the repository at this point in the history
  • Loading branch information
felipelincoln authored Jul 1, 2024
1 parent 9121870 commit cc40344
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,10 @@ pub fn parse_ord_server_args(args: &str) -> (Settings, subcommand::server::Serve
}
}

pub fn cancel_shutdown() {
SHUTTING_DOWN.store(false, atomic::Ordering::Relaxed);
}

pub fn shut_down() {
SHUTTING_DOWN.store(true, atomic::Ordering::Relaxed);
}
Expand Down

0 comments on commit cc40344

Please sign in to comment.