fix(imessage): harden abort shutdown

This commit is contained in:
Peter Steinberger
2026-01-07 03:38:58 +00:00
parent 08fc0b3809
commit 9c9ae5aa54
4 changed files with 41 additions and 2 deletions

View File

@@ -452,7 +452,9 @@ export async function monitorIMessageProvider(
// Ignore disconnect errors during shutdown.
});
}
void client.stop();
void client.stop().catch(() => {
// Ignore disconnect errors during shutdown.
});
};
abort?.addEventListener("abort", onAbort, { once: true });