mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-29 14:49:59 +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->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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user