Skip to content

Commit a350a36

Browse files
committed
refactor(channels): reuse ingress stop guard
1 parent 9d2de7b commit a350a36

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

‎src/channels/message/ingress-drain.ts‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -612,13 +612,7 @@ export function createChannelIngressDrain<
612612
});
613613
}
614614
} catch (err) {
615-
if (disposed) {
616-
return;
617-
}
618-
if (options.abortSignal?.aborted) {
619-
return;
620-
}
621-
if (state.phase === "settled") {
615+
if (isStopped() || state.phase === "settled") {
622616
return;
623617
}
624618
// Guillotine / supersede own settleOnce — do not fail/release again.

0 commit comments

Comments
 (0)