diff --git a/SourceQuery/SourceRcon.php b/SourceQuery/SourceRcon.php index c132ad9..b1002b9 100644 --- a/SourceQuery/SourceRcon.php +++ b/SourceQuery/SourceRcon.php @@ -146,10 +146,10 @@ // See https://developer.valvesoftware.com/wiki/Source_RCON_Protocol#Multiple-packet_Responses if( StrLen( $Data ) >= 4000 ) { + $this->Write( SourceQuery::SERVERDATA_RESPONSE_VALUE ); + do - { - $this->Write( SourceQuery::SERVERDATA_RESPONSE_VALUE ); - + { $Buffer = $this->Read( ); $Buffer->GetLong( ); // RequestID