mirror of
https://github.com/YGGverse/hl-php.git
synced 2026-03-31 17:15:39 +00:00
add socket check
This commit is contained in:
parent
27fbf92c6b
commit
15035498b3
1 changed files with 6 additions and 3 deletions
|
|
@ -41,11 +41,14 @@ class Master
|
|||
}
|
||||
|
||||
public function __destruct()
|
||||
{
|
||||
if (true === is_resource($this->_socket))
|
||||
{
|
||||
fclose(
|
||||
$this->_socket
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
public function getServersIPv6(
|
||||
int $limit = 100,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue