From 66b7d90bbfa2b4a0217c3674d6e8045943258c4e Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sun, 30 Aug 2026 20:30:40 +0200 Subject: [PATCH] Let onClose end the session through the same path as every other close --- src/session.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/session.ts b/src/session.ts index 45b20b0..249b8d2 100644 --- a/src/session.ts +++ b/src/session.ts @@ -456,14 +456,13 @@ export class Session extends EventEmitter { } private onClose(): void { - this.teardown(); - if (this.reconnectLoop && !this.reconnectLoop.isStopped()) { + this.teardown(); this.reconnectLoop.schedule(); return; } - this.dlrMerger.clear(); + this.end(); } }