Skip to content

Commit c7257e7

Browse files
authored
Fix #155
1 parent d3d04e0 commit c7257e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MinecraftQuery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ private function GetBedrockStatus( )
215215

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

218-
if( $Data === false )
218+
if( empty( $Data ) )
219219
{
220220
throw new MinecraftQueryException( "Failed to read from socket." );
221221
}

0 commit comments

Comments
 (0)