mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-27 05:34:42 +01:00
Do not ping CDN DCs
This commit is contained in:
parent
f47c08a764
commit
a6a64d608a
@ -347,7 +347,7 @@ class Connection
|
|||||||
if (!isset($this->waiter)) {
|
if (!isset($this->waiter)) {
|
||||||
$this->waiter = new HttpWaitLoop($this);
|
$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);
|
$this->pinger = new PingLoop($this);
|
||||||
}
|
}
|
||||||
foreach ($this->new_outgoing as $message_id => $message) {
|
foreach ($this->new_outgoing as $message_id => $message) {
|
||||||
|
@ -139,10 +139,7 @@ trait AuthKeyHandler
|
|||||||
$pq = Tools::unpackSignedLong(\strrev($pq_bytes));
|
$pq = Tools::unpackSignedLong(\strrev($pq_bytes));
|
||||||
foreach ([
|
foreach ([
|
||||||
'native_single_cpp',
|
'native_single_cpp',
|
||||||
'python_single_alt',
|
|
||||||
'python_single',
|
|
||||||
'native_single',
|
'native_single',
|
||||||
'wolfram'
|
|
||||||
] as $method) {
|
] as $method) {
|
||||||
$this->logger->logger("Factorizing with $method (please wait, might take a while)");
|
$this->logger->logger("Factorizing with $method (please wait, might take a while)");
|
||||||
if ($method !== 'native_single_cpp') {
|
if ($method !== 'native_single_cpp') {
|
||||||
|
Loading…
Reference in New Issue
Block a user