mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 16:24:05 +00:00
Fixed zero-length packets spamming the console
This commit is contained in:
parent
e9e59c33cc
commit
bad8365e28
@ -62,7 +62,7 @@ class MinecraftInterface{
|
||||
$source = false;
|
||||
$port = 1;
|
||||
$len = $this->socket->read($buf, $source, $port);
|
||||
if($len === false){
|
||||
if($len === false and $len > 0){
|
||||
return $pk;
|
||||
}
|
||||
$this->bandwidth[0] += $len;
|
||||
|
Loading…
x
Reference in New Issue
Block a user