Let onClose end the session through the same path as every other close

This commit is contained in:
2026-08-30 20:30:40 +02:00
parent 5c618e0061
commit 66b7d90bbf
+2 -3
View File
@@ -456,14 +456,13 @@ export class Session extends EventEmitter<SessionEvents> {
} }
private onClose(): void { private onClose(): void {
this.teardown();
if (this.reconnectLoop && !this.reconnectLoop.isStopped()) { if (this.reconnectLoop && !this.reconnectLoop.isStopped()) {
this.teardown();
this.reconnectLoop.schedule(); this.reconnectLoop.schedule();
return; return;
} }
this.dlrMerger.clear(); this.end();
} }
} }