mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-12 16:59:44 +00:00
NetworkSession: use a better check for timeout
This commit is contained in:
parent
e0a9ea2573
commit
7b049b6db1
@ -821,7 +821,7 @@ class NetworkSession{
|
||||
}
|
||||
|
||||
public function tick() : bool{
|
||||
if($this->handler instanceof LoginSessionHandler){
|
||||
if($this->info === null){
|
||||
if(time() >= $this->connectTime + 10){
|
||||
$this->disconnect("Login timeout");
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user