diff --git a/src/Xash3D/Master.php b/src/Xash3D/Master.php index 9fc7d18..541c421 100644 --- a/src/Xash3D/Master.php +++ b/src/Xash3D/Master.php @@ -19,10 +19,13 @@ class Master $port ); - stream_set_timeout( - $this->_socket, - $timeout - ); + if ($this->_socket) + { + stream_set_timeout( + $this->_socket, + $timeout + ); + } } public function __destruct()