mirror of
https://github.com/YGGverse/hl-php.git
synced 2026-03-31 17:15:39 +00:00
use break as nothing to continue on any piece fail
This commit is contained in:
parent
795f304789
commit
9f4e924592
1 changed files with 2 additions and 2 deletions
|
|
@ -156,7 +156,7 @@ class Master
|
|||
if (false === $p = unpack('nport', $p))
|
||||
{
|
||||
$this->_errors[] = _("Invalid `port` value in packet at $i for $master");
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
|
||||
// Validate result
|
||||
|
|
@ -164,7 +164,7 @@ class Master
|
|||
: FILTER_FLAG_IPV4) || empty($p['port']))
|
||||
{
|
||||
$this->_errors[] = _("Invalid socket address in packet at $i for $master");
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
|
||||
$servers["{$host}{$p['port']}"] = // keep unique
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue