Remove condition that's not needed anymore

This commit is contained in:
dullbananas 2024-05-25 19:33:51 -07:00 committed by GitHub
parent db856efcdb
commit d82bfccc5b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -265,7 +265,6 @@ pub async fn start_lemmy_server(args: CmdArgs) -> LemmyResult<()> {
let mut interrupt = tokio::signal::unix::signal(SignalKind::interrupt())?;
let mut terminate = tokio::signal::unix::signal(SignalKind::terminate())?;
if server.is_some() || federate.is_some() || scheduled_tasks.is_some() {
tokio::select! {
_ = tokio::signal::ctrl_c() => {
tracing::warn!("Received ctrl-c, shutting down gracefully...");
@ -277,7 +276,6 @@ pub async fn start_lemmy_server(args: CmdArgs) -> LemmyResult<()> {
tracing::warn!("Received terminate, shutting down gracefully...");
}
}
}
if let Some(server) = server {
server.stop(true).await;
}