lxmd: register its destination types with the shared instance

This commit is contained in:
DeFiDude committed 2026-11-10 04:14:12 -07:00
1 parent c65f9ef960
commit 01764f3238
1 file changed
+9
+9
View File
@@ -5967,6 +5967,13 @@ pub(crate) async fn main() {
let transport_tx = rns_handle.transport_tx.clone();
if control_preflight.is_none() {
// LXMRouter.REQUIRED_DESTINATION_TYPES, registered as the router starts.
for destination_type in [DELIVERY_APP_NAME, "lxmf.propagation"] {
rns_handle.wants_destination_type(destination_type).await;
}
}
if let Some(preflight) = control_preflight {
let identity = match Identity::from_file(&preflight.identity_path) {
Ok(identity) => identity,
@@ -6612,6 +6619,8 @@ pub(crate) async fn main() {
}
}
// Reticulum's exit handler deregisters this process's destination types.
rns_handle.unwants_all_destination_types().await;
tracing::info!("LXMF Daemon stopped");
if let Some(status) = one_shot_status {
std::process::exit(status);