From f50db37e12a6a933f26c7e1f433cf3ec49194261 Mon Sep 17 00:00:00 2001 From: ShevAbam Date: Sat, 16 Apr 2016 19:11:54 +0200 Subject: Closing tcp connection #34 --- libs/Utils/Misc.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libs/Utils/Misc.php') 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') { -- cgit v1.2.3