mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
If no handle return false
Splitting up the condition and return false for each condition works in all tests.
This commit is contained in:
@@ -142,7 +142,11 @@ class event_socket {
|
||||
}
|
||||
|
||||
public function connected() {
|
||||
if ($this->fp && feof($this->fp) === true) {
|
||||
if (!$this->fp) {
|
||||
//not connected to the socket
|
||||
return false;
|
||||
}
|
||||
if (feof($this->fp) === true) {
|
||||
//not connected to the socket
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user