diff --git a/libs/Utils/Misc.php b/libs/Utils/Misc.php index b654cef..7aab276 100644 --- a/libs/Utils/Misc.php +++ b/libs/Utils/Misc.php @@ -171,15 +171,14 @@ class Misc { $handle = @fsockopen($host, $port, $errno, $errstr, $timeout); - if ($handle) + if (!$handle) { - fclose($handle); - return true; + return false; } else { fclose($handle); - return false; + return true; } } elseif ($protocol == 'udp')