From bc04e75c4bb26df1d7ba8cd8377ba5aa7384aa88 Mon Sep 17 00:00:00 2001 From: DeFiDude <59237470+DeFiDude@users.noreply.github.com> Date: Wed, 18 Nov 2026 20:11:17 -0700 Subject: [PATCH] lxmd: deregister destination types once at exit, through runtime shutdown --- crates/lxmf-tools/src/commands/lxmd.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/lxmf-tools/src/commands/lxmd.rs b/crates/lxmf-tools/src/commands/lxmd.rs index ec3d1f5..20fedec 100644 --- a/crates/lxmf-tools/src/commands/lxmd.rs +++ b/crates/lxmf-tools/src/commands/lxmd.rs @@ -7132,8 +7132,9 @@ pub(crate) async fn main() { } } - // Reticulum's exit handler deregisters this process's destination types. - rns_handle.unwants_all_destination_types().await; + // Reticulum's exit handler: runtime shutdown deregisters this process's + // destination types once, then persists transport state. + rns_handle.shutdown_and_wait().await; tracing::info!("LXMF Daemon stopped"); if let Some(status) = one_shot_status { std::process::exit(status);