mirror of
https://github.com/ratspeak/rsLXMF
synced 2026-11-22 23:10:35 +00:00
lxmd: deregister destination types once at exit, through runtime shutdown
This commit is contained in:
1 parent
2e057f6172
commit
bc04e75c4b
1 file changed
+3
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user