mirror of
https://github.com/YGGverse/hl-php.git
synced 2025-02-05 11:14:20 +00:00
add socket check
This commit is contained in:
parent
27fbf92c6b
commit
15035498b3
@ -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…
x
Reference in New Issue
Block a user