mirror of
https://github.com/ratspeak/rsLXMF
synced 2026-11-27 13:52:18 +00:00
lxmd: exit cleanly during early shutdown
This commit is contained in:
1 parent
fc1c99d3ff
commit
e5596ddaa3
1 file changed
+4
@@ -4720,6 +4720,10 @@ pub(crate) async fn main() {
|
||||
}
|
||||
};
|
||||
if let Err(error) = runner.install_announce_subscriptions(&rns_handle).await {
|
||||
if shutdown.is_triggered() {
|
||||
tracing::info!("Startup announce cancelled by shutdown");
|
||||
return;
|
||||
}
|
||||
tracing::error!(%error, "failed to install lxmd announce subscriptions");
|
||||
std::process::exit(1);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user