This commit is contained in:
Shoghi Cervantes 2013-12-03 02:10:43 +01:00
parent bad8365e28
commit fd2eb7b230

View File

@ -62,7 +62,7 @@ class MinecraftInterface{
$source = false;
$port = 1;
$len = $this->socket->read($buf, $source, $port);
if($len === false and $len > 0){
if($len === false or $len === 0){
return $pk;
}
$this->bandwidth[0] += $len;