Repository navigation
Commit db23c0c
fix(gateway): use already-aborted signal in stopChannel when no controller exists
When stopChannel is called for an account without an active
AbortController, the fallback `new AbortController().signal` creates a
signal from an anonymous, unreferenced controller that can never be
aborted. If stopAccount implementations use the signal for cleanup
coordination, the never-aborting signal can cause hangs during graceful
shutdown.
Replace with `AbortSignal.abort()` which returns an already-aborted
signal, correctly communicating that the account is being stopped.1 parent 4108901 commit db23c0c
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
490 | 490 | | |
491 | 491 | | |
492 | 492 | | |
493 | | - | |
| 493 | + | |
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
| |||
0 commit comments