|
@@ -270,6 +270,7 @@ export class MTProtoSender {
|
|
await sleep(this._delay);
|
|
await sleep(this._delay);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ this.userDisconnected = false;
|
|
this.isConnecting = false;
|
|
this.isConnecting = false;
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
@@ -480,7 +481,6 @@ export class MTProtoSender {
|
|
let message;
|
|
let message;
|
|
|
|
|
|
while (this._userConnected && !this._reconnecting) {
|
|
while (this._userConnected && !this._reconnecting) {
|
|
- // this._log.debug('Receiving items from the network...');
|
|
|
|
this._log.debug("Receiving items from the network...");
|
|
this._log.debug("Receiving items from the network...");
|
|
try {
|
|
try {
|
|
body = await this._connection!.recv();
|
|
body = await this._connection!.recv();
|