From 2d74e6037305d54c2f020869772f6d26c391d8c5 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Wed, 31 May 2017 10:28:24 +0100 Subject: [PATCH] bugfixe --- src/danog/MadelineProto/MTProto.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/danog/MadelineProto/MTProto.php b/src/danog/MadelineProto/MTProto.php index f2300cfa..d19cd371 100644 --- a/src/danog/MadelineProto/MTProto.php +++ b/src/danog/MadelineProto/MTProto.php @@ -590,6 +590,7 @@ class MTProto extends \Volatile public function init_authorization() { $this->initing_authorization = true; + $this->getting_state = true; foreach ($this->datacenter->sockets as $id => $socket) { if (strpos($id, 'media')) { continue; @@ -615,7 +616,8 @@ class MTProto extends \Volatile $this->should_serialize = true; } } - $this->initing_authorization = true; + $this->initing_authorization = faÃlse; + $this->getting_state = false; } public function sync_authorization($authorized_dc)