mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
ProcessLoginTask: check connected status instead of closed status
connected is what we're looking for here, as opposed to an entity being marked as garbage.
This commit is contained in:
parent
0273e2484e
commit
ce58294305
@ -219,7 +219,7 @@ class ProcessLoginTask extends AsyncTask{
|
||||
public function onCompletion(Server $server) : void{
|
||||
/** @var Player $player */
|
||||
$player = $this->fetchLocal();
|
||||
if($player->isClosed()){
|
||||
if(!$player->isConnected()){
|
||||
$server->getLogger()->error("Player " . $player->getName() . " was disconnected before their login could be verified");
|
||||
}elseif($player->setAuthenticationStatus($this->authenticated, $this->error)){
|
||||
if(!$this->useEncryption){
|
||||
|
Loading…
x
Reference in New Issue
Block a user