mirror of
https://github.com/slawkens/myaac.git
synced 2025-11-29 22:46:51 +01:00
OTS_ServerInfo -> set timeout out of class
Possibility to use the class without MyAAC
This commit is contained in:
@@ -114,6 +114,8 @@ function updateStatus() {
|
||||
|
||||
// get server status and save it to database
|
||||
$serverInfo = new OTS_ServerInfo($status_ip, $status_port);
|
||||
$serverInfo->setTimeout(setting('core.status_timeout'));
|
||||
|
||||
$serverStatus = $serverInfo->status();
|
||||
if(!$serverStatus)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user