1
0
mirror of https://github.com/danog/MadelineProto.git synced 2025-01-23 01:51:12 +01:00

Fix HTTP(s) transports

This commit is contained in:
Daniil Gentili 2023-07-23 16:16:31 +02:00
parent 9ced15326c
commit 64de1c0242
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -270,7 +270,7 @@ final class Connection
$this->checker ??= new CheckLoop($this);
$this->cleanup ??= new CleanupLoop($this);
$this->waiter ??= new HttpWaitLoop($this);
if (!isset($this->pinger) && !$this->ctx->isMedia() && !$this->ctx->isCDN()) {
if (!isset($this->pinger) && !$this->ctx->isMedia() && !$this->ctx->isCDN() && !$this->shared->isHttp()) {
$this->pinger = new PingLoop($this);
}
foreach ($this->new_outgoing as $message_id => $message) {