[core] Wait till the store is closed

This commit is contained in:
devlikepro committed 2024-08-27 16:42:30 +07:00
1 parent a2d0dfd8b2
commit 4cd9ce0ff7
1 file changed
+1 -1
+1 -1
View File
@@ -443,8 +443,8 @@ export class WhatsappSessionNoWebCore extends WhatsappSession {
// @ts-ignore
this.sock?.ev?.removeAllListeners();
this.sock?.ws?.removeAllListeners();
await this.store?.close();
this.sock?.end(undefined);
this.store?.close();
}
getSessionMeInfo(): MeInfo | null {