From e70af362d0e0a88c6f5639f94a87360af9d43346 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Mon, 7 May 2018 13:55:23 +0100 Subject: [PATCH] RCONInstance: fixup bad continues --- src/pocketmine/network/rcon/RCONInstance.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/pocketmine/network/rcon/RCONInstance.php b/src/pocketmine/network/rcon/RCONInstance.php index 9608ecb57..5e6f0e650 100644 --- a/src/pocketmine/network/rcon/RCONInstance.php +++ b/src/pocketmine/network/rcon/RCONInstance.php @@ -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);