refactor(appd): consolidate portal cleanup through kill_portal in normal exit path

This commit is contained in:
Marco Allegretti 2026-03-11 18:21:43 +01:00
parent 0877bd970d
commit 8eb7211998

View file

@ -281,11 +281,7 @@ pub(crate) async fn supervise(
mount_orch.umount();
if let Some((ref sock, mut portal_child)) = portal {
let _ = portal_child.kill().await;
let _ = portal_child.wait().await;
let _ = std::fs::remove_file(sock);
}
kill_portal(portal).await;
{
let mut reg = registry.lock().await;