From a1a06e21d07975cb2135012e8fb3b2dc9960f61e Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Wed, 27 Dec 2017 14:11:32 +0000 Subject: [PATCH] Another small fix --- src/danog/MadelineProto/MTProto.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/danog/MadelineProto/MTProto.php b/src/danog/MadelineProto/MTProto.php index 396ea338..8f9b539d 100644 --- a/src/danog/MadelineProto/MTProto.php +++ b/src/danog/MadelineProto/MTProto.php @@ -306,7 +306,7 @@ class MTProto if (!isset($this->v) || $this->v !== self::V) { \danog\MadelineProto\Logger::log([\danog\MadelineProto\Lang::$current_lang['serialization_ofd']], Logger::WARNING); foreach ($this->datacenter->sockets as $dc_id => $socket) { - if ($this->authorized === self::LOGGED_IN && strpos($dc_id, '_') === false) { + if ($this->authorized === self::LOGGED_IN && strpos($dc_id, '_') === false && $socket->auth_key !== NULL && $socket->temp_auth_key !== NULL) { $socket->authorized = true; } } //$this->authorized === self::LOGGED_IN; }