mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 12:39:43 +00:00
Fixed zero-length packets spamming the console
This commit is contained in:
parent
e9e59c33cc
commit
bad8365e28
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue