fix: keep bonjour rejection handler through shutdown

This commit is contained in:
Peter Steinberger
2026-01-07 20:54:40 +00:00
parent 9056e0edbb
commit fd3babc626
3 changed files with 58 additions and 1 deletions

View File

@@ -267,11 +267,12 @@ export async function startGatewayBonjourAdvertiser(
/* ignore */
}
}
ciaoCancellationRejectionHandler?.();
try {
await responder.shutdown();
} catch {
/* ignore */
} finally {
ciaoCancellationRejectionHandler?.();
}
},
};