fix: imsg unhandled promises
This commit is contained in:
committed by
Peter Steinberger
parent
8ef0609f8e
commit
08fc0b3809
@@ -444,9 +444,13 @@ export async function monitorIMessageProvider(
|
||||
const abort = opts.abortSignal;
|
||||
const onAbort = () => {
|
||||
if (subscriptionId) {
|
||||
void client.request("watch.unsubscribe", {
|
||||
subscription: subscriptionId,
|
||||
});
|
||||
void client
|
||||
.request("watch.unsubscribe", {
|
||||
subscription: subscriptionId,
|
||||
})
|
||||
.catch(() => {
|
||||
// Ignore disconnect errors during shutdown.
|
||||
});
|
||||
}
|
||||
void client.stop();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user