Move the gate's teardown invariant to retrying()
Test / lint (pull_request) Successful in 23s
Test / test (18) (pull_request) Successful in 32s
Test / test (20) (pull_request) Successful in 31s
Test / test (22) (pull_request) Successful in 32s
Test / test (24) (pull_request) Successful in 31s
Test / test (26) (pull_request) Successful in 31s
Mirror / push (push) Has been cancelled

This commit was merged in pull request #39.
This commit is contained in:
2026-09-28 01:50:33 +02:00
parent 5e132977f4
commit 30245bda21
3 changed files with 9 additions and 11 deletions
+1
View File
@@ -395,6 +395,7 @@ export class Session extends EventEmitter<SessionEvents> {
else this.emitClose();
}
// Copied into the gate at teardown, so stopping the loop anywhere but drain() and end() has to shut the gate too.
private retrying(): boolean {
return this.reconnectLoop !== undefined && !this.reconnectLoop.isStopped();
}