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