await on .close()

This commit is contained in:
Mayank Verma
2025-09-10 13:42:21 +05:30
parent aa38c9e099
commit 12104df16a

View File

@@ -227,7 +227,7 @@ export class Connection {
async reconnect(): Promise<void> { async reconnect(): Promise<void> {
try { try {
if (this.isOpen) { if (this.isOpen) {
this.close(); await this.close();
} }
} finally { } finally {
this.session = new Session(this.config); this.session = new Session(this.config);