GramJs: Another possible fix for reconnects (#1201)

This commit is contained in:
Alexander Zinchuk 2021-06-22 18:03:45 +03:00
parent bc1b7f3cb3
commit 49d0e7987d

View File

@ -52,11 +52,9 @@ class Connection {
}
async disconnect() {
if (this._connected) {
this._connected = false;
await this._recvArray.push(undefined);
await this.socket.close();
}
this._connected = false;
void this._recvArray.push(undefined);
await this.socket.close();
}
async send(data) {