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