1
0
mirror of https://github.com/xPaw/PHP-Source-Query.git synced 2026-05-18 12:53:34 +02:00

Merge pull request #124 from InvexByte/master

Fix #43 - Only write SERVERDATA_RESPONSE_VALUE once for multi packet responses
This commit is contained in:
Pavel Djundik
2017-12-26 18:27:28 +02:00
committed by GitHub
+3 -3
View File
@@ -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