mirror of
https://github.com/xPaw/PHP-Source-Query.git
synced 2026-05-18 13:53:35 +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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user