add socket validation

This commit is contained in:
ghost 2024-01-12 18:36:47 +02:00
parent cd22acf846
commit 49c5c76908

View file

@ -19,11 +19,14 @@ class Master
$port $port
); );
if ($this->_socket)
{
stream_set_timeout( stream_set_timeout(
$this->_socket, $this->_socket,
$timeout $timeout
); );
} }
}
public function __destruct() public function __destruct()
{ {