From 9e3d322308fb8dadf0dc46257a5af67b262c9a59 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sun, 1 Oct 2023 19:36:26 +0200 Subject: [PATCH] Small fix --- src/MTProto.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/MTProto.php b/src/MTProto.php index 6c61dbaf4..090c48bb1 100644 --- a/src/MTProto.php +++ b/src/MTProto.php @@ -122,7 +122,7 @@ final class MTProto implements TLCallback, LoggerGetter * @internal * @var int */ - const V = 175; + const V = 176; /** * Bad message error codes. * @@ -1202,13 +1202,13 @@ final class MTProto implements TLCallback, LoggerGetter if (!\is_object($this->datacenter)) { throw new Exception(Lang::$current_lang['session_corrupted']); } - foreach ($this->datacenter->getDataCenterConnections() as $socket) { + foreach ($this->datacenter->getDataCenterConnections() as $id => $socket) { if ($de) { $socket->resetSession(); } if ($auth_key) { $socket->setTempAuthKey(null); - EventLoop::queue($socket->initAuthorization(...)); + EventLoop::queue($this->datacenter->waitGetConnection($id)->methodCallAsyncRead(...), 'help.getConfig', []); } } }