Skip to content

Commit

Permalink
Fix #155
Browse files Browse the repository at this point in the history
  • Loading branch information
xPaw authored Jun 18, 2021
1 parent d3d04e0 commit c7257e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MinecraftQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ private function GetBedrockStatus( )

$Data = \fread( $this->Socket, 4096 );

if( $Data === false )
if( empty( $Data ) )
{
throw new MinecraftQueryException( "Failed to read from socket." );
}
Expand Down

0 comments on commit c7257e7

Please sign in to comment.