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
pull/124/head
Byte 7 years ago committed by GitHub
parent 95057e9c35
commit ee60bef189
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -145,11 +145,11 @@
// We do this stupid hack to handle split packets
// See https://developer.valvesoftware.com/wiki/Source_RCON_Protocol#Multiple-packet_Responses
if( StrLen( $Data ) >= 4000 )
{
do
{
$this->Write( SourceQuery::SERVERDATA_RESPONSE_VALUE );
do
{
$Buffer = $this->Read( );
$Buffer->GetLong( ); // RequestID

Loading…
Cancel
Save