From 9bf639e52374ea1f2aa29ba1039489e2f1425122 Mon Sep 17 00:00:00 2001 From: Nadyita Date: Sat, 4 Jan 2025 09:47:22 +0100 Subject: [PATCH] onReady() fix for frozen chars Only trigger the timeout that lets the bot go ready after we successfully logged in. --- src/Client/SingleClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client/SingleClient.php b/src/Client/SingleClient.php index c57b02c..6dab8fe 100644 --- a/src/Client/SingleClient.php +++ b/src/Client/SingleClient.php @@ -397,7 +397,7 @@ protected function handleIncomingPackage(Package\InPackage $package): void { } elseif ($package instanceof In\GroupLeft) { $this->handleGroupLeft($package); } - if (!$this->isReady) { + if (!$this->isReady && isset($this->loggedInUid)) { if (isset($this->readyHandler)) { EventLoop::cancel($this->readyHandler); }