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

Throw more when using RCON

This commit is contained in:
Pavel Djundik
2015-10-24 16:11:55 +03:00
parent 4be6bf48c1
commit 613299b2bc
3 changed files with 5 additions and 12 deletions
+1 -3
View File
@@ -137,7 +137,7 @@
}
else if( $Type !== SourceQuery::SERVERDATA_RESPONSE_VALUE )
{
return false;
throw new InvalidPacketException( 'Invalid rcon response.', InvalidPacketException::PACKET_HEADER_MISMATCH );
}
$Data = $Buffer->Get( );
@@ -197,7 +197,5 @@
{
throw new AuthenticationException( 'RCON authorization failed.', AuthenticationException::BAD_PASSWORD );
}
return true;
}
}