summaryrefslogtreecommitdiff
path: root/libs/Utils/Misc.php
diff options
context:
space:
mode:
authorShevAbam <shevabam@gmail.com>2016-04-16 19:11:54 +0200
committerShevAbam <shevabam@gmail.com>2016-04-16 19:11:54 +0200
commitf50db37e12a6a933f26c7e1f433cf3ec49194261 (patch)
treef7b04045589fdb6368413ac3f84a8d032d69ac61 /libs/Utils/Misc.php
parent3f2f0db10c0a3a13c0593628768a8794aaa800c8 (diff)
Closing tcp connection #34
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')
{