From b99daa20c84156b98655251aa8dd31f3e9d456b8 Mon Sep 17 00:00:00 2001 From: ArkQuark <74979909+ArkQuark@users.noreply.github.com> Date: Mon, 20 Jun 2022 00:12:12 +0300 Subject: [PATCH] Update RCON.php --- src/network/RCON.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/network/RCON.php b/src/network/RCON.php index 74c3253d..c88a6223 100644 --- a/src/network/RCON.php +++ b/src/network/RCON.php @@ -173,7 +173,7 @@ class RCONInstance extends Thread{ $p = $this->readPacket($client, $size, $requestID, $packetType, $payload); if($p === false){ $this->{"status".$n} = -1; - continue 2; + break; }elseif($p === null){ break; } @@ -182,7 +182,7 @@ class RCONInstance extends Thread{ case 3: //Login if($this->{"status".$n} !== 0){ $this->{"status".$n} = -1; - continue 2; + break; } if($payload === $this->password){ @socket_getpeername($client, $addr, $port); @@ -194,7 +194,7 @@ class RCONInstance extends Thread{ }else{ $this->{"status".$n} = -1; $this->writePacket($client, -1, 2, ""); - continue 2; + break; } break; case 2: //Command