OTS_ServerInfo -> set timeout out of class

Possibility to use the class without MyAAC
This commit is contained in:
slawkens
2025-05-23 16:11:57 +02:00
parent 43153b2b0c
commit 40d65a6613
3 changed files with 17 additions and 4 deletions

View File

@@ -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)
{