mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 04:59:46 +00:00
Update RCON.php
This commit is contained in:
parent
2a1e8b9d2c
commit
50756dc53a
1 changed files with 3 additions and 3 deletions
|
|
@ -168,14 +168,14 @@ class RCONInstance extends Thread{
|
||||||
if($this->{"status".$n} !== -1 and $this->stop !== true){
|
if($this->{"status".$n} !== -1 and $this->stop !== true){
|
||||||
if($this->{"status".$n} === 0 and $this->{"timeout".$n} < microtime(true)){ //Timeout
|
if($this->{"status".$n} === 0 and $this->{"timeout".$n} < microtime(true)){ //Timeout
|
||||||
$this->{"status".$n} = -1;
|
$this->{"status".$n} = -1;
|
||||||
continue 2;
|
break;
|
||||||
}
|
}
|
||||||
$p = $this->readPacket($client, $size, $requestID, $packetType, $payload);
|
$p = $this->readPacket($client, $size, $requestID, $packetType, $payload);
|
||||||
if($p === false){
|
if($p === false){
|
||||||
$this->{"status".$n} = -1;
|
$this->{"status".$n} = -1;
|
||||||
continue 2;
|
continue 2;
|
||||||
}elseif($p === null){
|
}elseif($p === null){
|
||||||
continue 2;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch($packetType){
|
switch($packetType){
|
||||||
|
|
@ -200,7 +200,7 @@ class RCONInstance extends Thread{
|
||||||
case 2: //Command
|
case 2: //Command
|
||||||
if($this->{"status".$n} !== 1){
|
if($this->{"status".$n} !== 1){
|
||||||
$this->{"status".$n} = -1;
|
$this->{"status".$n} = -1;
|
||||||
continue 2;
|
break;
|
||||||
}
|
}
|
||||||
if(strlen($payload) > 0){
|
if(strlen($payload) > 0){
|
||||||
$this->cmd = ltrim($payload);
|
$this->cmd = ltrim($payload);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue