mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-17 08:34:19 +01:00
await on .close()
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user