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
|
|
@ -42,9 +42,12 @@ class Master
|
||||||
|
|
||||||
public function __destruct()
|
public function __destruct()
|
||||||
{
|
{
|
||||||
fclose(
|
if (true === is_resource($this->_socket))
|
||||||
$this->_socket
|
{
|
||||||
);
|
fclose(
|
||||||
|
$this->_socket
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getServersIPv6(
|
public function getServersIPv6(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue