1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 06:59:01 +01:00
This commit is contained in:
Daniil Gentili 2024-04-07 02:42:38 +02:00
parent 0a5d338403
commit d765d01c11

View File

@ -154,7 +154,6 @@ final class WriteLoop extends Loop
$has_state = false;
$has_resend = false;
$has_http_wait = false;
$has_init = false;
foreach ($this->connection->pendingOutgoing as $k => $message) {
if ($message->unencrypted) {
continue;
@ -212,11 +211,6 @@ final class WriteLoop extends Loop
if ($message->isMethod && $constructor !== 'http_wait' && $constructor !== 'ping_delay_disconnect' && $constructor !== 'auth.bindTempAuthKey') {
if (!$this->shared->getTempAuthKey()->isInited()) {
if ($constructor === 'help.getConfig' || $constructor === 'upload.getCdnFile') {
if ($has_init) {
$skipped = true;
break;
}
$has_init = true;
$this->API->logger(sprintf('Writing client info (also executing %s)...', $constructor), Logger::NOTICE);
$MTmessage['body'] = ($this->API->getTL()->serializeMethod('invokeWithLayer', [
'layer' => $this->API->settings->getSchema()->getLayer(),