mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
RCONInstance: fixup bad continues
This commit is contained in:
parent
24aab8365e
commit
e70af362d0
@ -154,7 +154,7 @@ class RCONInstance extends Thread{
|
||||
case 3: //Login
|
||||
if($this->{"status" . $n} !== self::STATUS_AUTHENTICATING){
|
||||
$this->{"status" . $n} = self::STATUS_DISCONNECTED;
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
if($payload === $this->password){
|
||||
socket_getpeername($client, $addr, $port);
|
||||
@ -170,13 +170,12 @@ class RCONInstance extends Thread{
|
||||
}else{
|
||||
$this->{"status" . $n} = self::STATUS_DISCONNECTED;
|
||||
$this->writePacket($client, -1, 2, "");
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
case 2: //Command
|
||||
if($this->{"status" . $n} !== self::STATUS_CONNECTED){
|
||||
$this->{"status" . $n} = self::STATUS_DISCONNECTED;
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
if(strlen($payload) > 0){
|
||||
$this->cmd = ltrim($payload);
|
||||
|
Loading…
x
Reference in New Issue
Block a user