From 0e28029907de3bf87ab4de5d96693741fd91ef7f Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Thu, 7 Sep 2023 21:00:54 +0200 Subject: [PATCH] Small fix --- src/Loop/Connection/ReadLoop.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Loop/Connection/ReadLoop.php b/src/Loop/Connection/ReadLoop.php index 1e9856eb0..9e3190966 100644 --- a/src/Loop/Connection/ReadLoop.php +++ b/src/Loop/Connection/ReadLoop.php @@ -65,6 +65,7 @@ final class ReadLoop extends Loop && !$this->connection->hasPendingCalls() && $this->connection->isMedia() && !$this->connection->isWriting() + && $this->shared->hasTempAuthKey() ) { $this->logger->logger("Got NothingInTheSocketException in DC {$this->datacenter}, disconnecting because we have nothing to do...", Logger::ERROR); $this->connection->disconnect(true);