Skip to content

Commit

Permalink
onReady() fix for frozen chars
Browse files Browse the repository at this point in the history
Only trigger the timeout that lets the bot go ready
after we successfully logged in.
  • Loading branch information
Nadyita committed Jan 4, 2025
1 parent 9d1ce8a commit 9bf639e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client/SingleClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 9bf639e

Please sign in to comment.