Merge pull request #124 from InvexByte/master

Fix #43 - Only write SERVERDATA_RESPONSE_VALUE once for multi packet responses
pull/126/head
Pavel Djundik 7 years ago committed by GitHub
commit 5b39d65038
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save