1
0
mirror of https://github.com/ShaYmez/ezservermonitor-web.git synced 2025-06-19 06:32:26 -04:00

Closing tcp connection

This commit is contained in:
ShevAbam 2016-04-16 19:11:54 +02:00
parent 3f2f0db10c
commit f50db37e12

@ -172,9 +172,15 @@ class Misc
$handle = @fsockopen($host, $port, $errno, $errstr, $timeout); $handle = @fsockopen($host, $port, $errno, $errstr, $timeout);
if ($handle) if ($handle)
{
fclose($handle);
return true; return true;
}
else else
{
fclose($handle);
return false; return false;
}
} }
elseif ($protocol == 'udp') elseif ($protocol == 'udp')
{ {