1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 01:14:39 +01:00

Do not ping CDN DCs

This commit is contained in:
Daniil Gentili 2022-05-07 21:17:33 +02:00
parent f47c08a764
commit a6a64d608a
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 1 additions and 4 deletions

View File

@ -347,7 +347,7 @@ class Connection
if (!isset($this->waiter)) {
$this->waiter = new HttpWaitLoop($this);
}
if (!isset($this->pinger) && !$this->ctx->isMedia()) { // && ($this->ctx->hasStreamName(WssStream::class) || $this->ctx->hasStreamName(WsStream::class))) {
if (!isset($this->pinger) && !$this->ctx->isMedia() && !$this->ctx->isCDN()) { // && ($this->ctx->hasStreamName(WssStream::class) || $this->ctx->hasStreamName(WsStream::class))) {
$this->pinger = new PingLoop($this);
}
foreach ($this->new_outgoing as $message_id => $message) {

View File

@ -139,10 +139,7 @@ trait AuthKeyHandler
$pq = Tools::unpackSignedLong(\strrev($pq_bytes));
foreach ([
'native_single_cpp',
'python_single_alt',
'python_single',
'native_single',
'wolfram'
] as $method) {
$this->logger->logger("Factorizing with $method (please wait, might take a while)");
if ($method !== 'native_single_cpp') {