From 50756dc53aad4101db49149764e2766e44df6b77 Mon Sep 17 00:00:00 2001 From: ArkQuark <74979909+ArkQuark@users.noreply.github.com> Date: Mon, 20 Jun 2022 00:09:17 +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 4d0123c5..74c3253d 100644 --- a/src/network/RCON.php +++ b/src/network/RCON.php @@ -168,14 +168,14 @@ class RCONInstance extends Thread{ if($this->{"status".$n} !== -1 and $this->stop !== true){ if($this->{"status".$n} === 0 and $this->{"timeout".$n} < microtime(true)){ //Timeout $this->{"status".$n} = -1; - continue 2; + break; } $p = $this->readPacket($client, $size, $requestID, $packetType, $payload); if($p === false){ $this->{"status".$n} = -1; continue 2; }elseif($p === null){ - continue 2; + break; } switch($packetType){ @@ -200,7 +200,7 @@ class RCONInstance extends Thread{ case 2: //Command if($this->{"status".$n} !== 1){ $this->{"status".$n} = -1; - continue 2; + break; } if(strlen($payload) > 0){ $this->cmd = ltrim($payload);