mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-13 13:25:16 +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
|
case 3: //Login
|
||||||
if($this->{"status" . $n} !== self::STATUS_AUTHENTICATING){
|
if($this->{"status" . $n} !== self::STATUS_AUTHENTICATING){
|
||||||
$this->{"status" . $n} = self::STATUS_DISCONNECTED;
|
$this->{"status" . $n} = self::STATUS_DISCONNECTED;
|
||||||
continue;
|
break;
|
||||||
}
|
}
|
||||||
if($payload === $this->password){
|
if($payload === $this->password){
|
||||||
socket_getpeername($client, $addr, $port);
|
socket_getpeername($client, $addr, $port);
|
||||||
@ -170,13 +170,12 @@ class RCONInstance extends Thread{
|
|||||||
}else{
|
}else{
|
||||||
$this->{"status" . $n} = self::STATUS_DISCONNECTED;
|
$this->{"status" . $n} = self::STATUS_DISCONNECTED;
|
||||||
$this->writePacket($client, -1, 2, "");
|
$this->writePacket($client, -1, 2, "");
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 2: //Command
|
case 2: //Command
|
||||||
if($this->{"status" . $n} !== self::STATUS_CONNECTED){
|
if($this->{"status" . $n} !== self::STATUS_CONNECTED){
|
||||||
$this->{"status" . $n} = self::STATUS_DISCONNECTED;
|
$this->{"status" . $n} = self::STATUS_DISCONNECTED;
|
||||||
continue;
|
break;
|
||||||
}
|
}
|
||||||
if(strlen($payload) > 0){
|
if(strlen($payload) > 0){
|
||||||
$this->cmd = ltrim($payload);
|
$this->cmd = ltrim($payload);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user