Update RCON.php

This commit is contained in:
ArkQuark 2022-06-20 00:09:17 +03:00 • committed by GitHub
parent 2a1e8b9d2c
commit 50756dc53a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);