mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 02:08:21 +00:00
LoginSessionHandler: fix crash when disconnected during login handling
This commit is contained in:
@ -74,7 +74,7 @@ class LoginSessionHandler extends SessionHandler{
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($this->player->handleLogin($packet)){
|
if($this->player->handleLogin($packet)){
|
||||||
if($this->session->getHandler() === $this){ //when login verification is disabled, the handler will already have been replaced
|
if($this->session->isConnected() and $this->session->getHandler() === $this){ //when login verification is disabled, the handler will already have been replaced
|
||||||
$this->session->setHandler(new NullSessionHandler()); //drop packets received during login verification
|
$this->session->setHandler(new NullSessionHandler()); //drop packets received during login verification
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user