NO_THREADS mode for tests

This commit is contained in:
Shoghi Cervantes 2013-08-28 16:00:30 +02:00
parent a07ae731e3
commit f9c405d46a
3 changed files with 13 additions and 5 deletions

View file

@ -281,7 +281,7 @@ class ServerAPI{
if($this->getProperty("auto-save") === true){
$this->server->schedule(18000, array($this, "autoSave"), array(), true);
}
if($this->getProperty("enable-rcon") === true){
if(!defined("NO_THREADS") and $this->getProperty("enable-rcon") === true){
$this->rcon = new RCON($this->getProperty("rcon.password", ""), $this->getProperty("rcon.port", $this->getProperty("server-port")), ($ip = $this->getProperty("server-ip")) != "" ? $ip:"0.0.0.0", $this->getProperty("rcon.threads", 1), $this->getProperty("rcon.clients-per-thread", 50));
}