add socket check

This commit is contained in:
ghost 2024-01-12 20:26:51 +02:00
parent 27fbf92c6b
commit 15035498b3

View File

@ -42,9 +42,12 @@ class Master
public function __destruct()
{
fclose(
$this->_socket
);
if (true === is_resource($this->_socket))
{
fclose(
$this->_socket
);
}
}
public function getServersIPv6(