mirror of
https://github.com/ShaYmez/ezservermonitor-web.git
synced 2024-12-21 09:01:15 -05:00
Closing tcp connection #34
This commit is contained in:
parent
f50db37e12
commit
4952f02a7a
@ -171,15 +171,14 @@ class Misc
|
||||
{
|
||||
$handle = @fsockopen($host, $port, $errno, $errstr, $timeout);
|
||||
|
||||
if ($handle)
|
||||
if (!$handle)
|
||||
{
|
||||
fclose($handle);
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
fclose($handle);
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
elseif ($protocol == 'udp')
|
||||
|
Loading…
Reference in New Issue
Block a user