Let onClose end the session through the same path as every other close
This commit is contained in:
+2
-3
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user