summaryrefslogtreecommitdiff
path: root/libs/Utils/Misc.php
diff options
context:
space:
mode:
Diffstat (limited to 'libs/Utils/Misc.php')
-rw-r--r--libs/Utils/Misc.php6
1 files changed, 6 insertions, 0 deletions
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')
{