mirror of
https://github.com/danog/telegram-tt.git
synced 2025-01-21 21:01:29 +01:00
GramJs: Another possible fix for reconnects (#1201)
This commit is contained in:
parent
bc1b7f3cb3
commit
49d0e7987d
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user