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 {
|
||||
this.teardown();
|
||||
|
||||
if (this.reconnectLoop && !this.reconnectLoop.isStopped()) {
|
||||
this.teardown();
|
||||
this.reconnectLoop.schedule();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
this.dlrMerger.clear();
|
||||
this.end();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user