diff --git a/resources/classes/event_socket.php b/resources/classes/event_socket.php index f1af3808f8..1922d63082 100644 --- a/resources/classes/event_socket.php +++ b/resources/classes/event_socket.php @@ -142,7 +142,7 @@ class event_socket { } public function connected() { - if (feof($this->fp) === true) { + if ($this->fp && feof($this->fp) === true) { //not connected to the socket return false; }