mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-18 03:33:26 +02:00
OTS_ServerInfo -> set timeout out of class
Possibility to use the class without MyAAC
This commit is contained in:
@@ -415,9 +415,11 @@ class POT
|
||||
* @tutorial POT/Server_status.pkg
|
||||
* @deprecated 0.1.4 Use OTS_ServerInfo->status().
|
||||
*/
|
||||
public static function serverStatus($server, $port)
|
||||
public static function serverStatus($server, $port, $timeout = 2.0)
|
||||
{
|
||||
$status = new OTS_ServerInfo($server, $port);
|
||||
$status->setTimeout($timeout);
|
||||
|
||||
return $status->status();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user