diff --git a/src/network/Query.php b/src/network/Query.php index d67dee3325..9198faf083 100644 --- a/src/network/Query.php +++ b/src/network/Query.php @@ -31,14 +31,11 @@ Source: http://wiki.unrealadmin.org/UT3_query_protocol */ class Query{ - private $socket, $workers, $threads, $server, $lastToken, $token, $longData, $timeout; + private $socket, $server, $lastToken, $token, $longData, $timeout; public function __construct(){ - $this->workers = array(); $this->password = (string) $password; console("[INFO] Starting GS4 status listener"); - $this->threads = (int) max(1, $threads); - $this->clientsPerThread = (int) max(1, $clientsPerThread); $this->server = ServerAPI::request(); $addr = $this->server->api->getProperty("server-ip", "0.0.0.0"); $port = $this->server->api->getProperty("server-port"); diff --git a/src/Async.php b/src/utils/pthreads.php similarity index 94% rename from src/Async.php rename to src/utils/pthreads.php index b25c245a32..7895e34808 100644 --- a/src/Async.php +++ b/src/utils/pthreads.php @@ -25,6 +25,11 @@ the Free Software Foundation, either version 3 of the License, or */ +class StackableArray{ + public $counter = 0; + public function run(){} +} + class Async extends Thread { public function __construct($method, $params = array()){ $this->method = $method;