mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-15 02:09:42 +00:00
LoginSessionHandler: fix crash when disconnected during login handling
This commit is contained in:
parent
47cf6e4833
commit
1ef538b69e
@ -74,7 +74,7 @@ class LoginSessionHandler extends SessionHandler{
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user