This commit is contained in:
Daniil Gentili 2019-06-14 11:29:28 +02:00
parent 059b24d926
commit 883811ef00

View File

@ -215,7 +215,7 @@ class Connection
$this->disconnect();
yield $this->API->datacenter->dcConnectAsync($this->ctx->getDc());
if ($this->API->hasAllAuth() && !$this->hasPendingCalls()) {
yield $this->API->method_call_async_read('ping', ['ping_id' => $this->random_int()], ['datacenter' => $this->datacenter]);
$this->callFork($this->API->method_call_async_read('ping', ['ping_id' => $this->random_int()], ['datacenter' => $this->datacenter]));
}
}