mirror of
https://github.com/xPaw/PHP-Source-Query.git
synced 2026-06-28 03:33:14 +02:00
Only write SERVERDATA_RESPONSE_VALUE once for multi packet responses
This fixes the bug where all RCON queries on same SourceQuery object would return empty responses
This commit is contained in:
@@ -146,10 +146,10 @@
|
|||||||
// See https://developer.valvesoftware.com/wiki/Source_RCON_Protocol#Multiple-packet_Responses
|
// See https://developer.valvesoftware.com/wiki/Source_RCON_Protocol#Multiple-packet_Responses
|
||||||
if( StrLen( $Data ) >= 4000 )
|
if( StrLen( $Data ) >= 4000 )
|
||||||
{
|
{
|
||||||
|
$this->Write( SourceQuery::SERVERDATA_RESPONSE_VALUE );
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
$this->Write( SourceQuery::SERVERDATA_RESPONSE_VALUE );
|
|
||||||
|
|
||||||
$Buffer = $this->Read( );
|
$Buffer = $this->Read( );
|
||||||
|
|
||||||
$Buffer->GetLong( ); // RequestID
|
$Buffer->GetLong( ); // RequestID
|
||||||
|
|||||||
Reference in New Issue
Block a user