lxmd: deregister destination types once at exit, through runtime shutdown

This commit is contained in:
DeFiDude committed 2026-11-18 20:11:17 -07:00
1 parent 2e057f6172
commit bc04e75c4b
1 file changed
+3 -2
+3 -2
View File
@@ -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);