mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-06 01:51:51 +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;
|
$source = false;
|
||||||
$port = 1;
|
$port = 1;
|
||||||
$len = $this->socket->read($buf, $source, $port);
|
$len = $this->socket->read($buf, $source, $port);
|
||||||
if($len === false){
|
if($len === false and $len > 0){
|
||||||
return $pk;
|
return $pk;
|
||||||
}
|
}
|
||||||
$this->bandwidth[0] += $len;
|
$this->bandwidth[0] += $len;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user