GramJs: Another possible fix for reconnects (#1201)
This commit is contained in:
parent
bc1b7f3cb3
commit
49d0e7987d
@ -52,11 +52,9 @@ class Connection {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async disconnect() {
|
async disconnect() {
|
||||||
if (this._connected) {
|
this._connected = false;
|
||||||
this._connected = false;
|
void this._recvArray.push(undefined);
|
||||||
await this._recvArray.push(undefined);
|
await this.socket.close();
|
||||||
await this.socket.close();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async send(data) {
|
async send(data) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user