Set max pending rcon requests to 1

This commit is contained in:
Daniel Vestøl committed 2019-07-05 23:42:51 +02:00
1 parent d66d22a9cd
commit f35be2f355
1 file changed
+5 -3
+5 -3
View File
@@ -364,12 +364,14 @@ write-data=${ path.resolve(config.instanceDirectory, instance) }\r\n
data = data.toString("utf8").replace(/(\r\n\t|\n|\r\t)/gm,"");
console.log(data);
if(data.includes("Starting RCON interface")){
let client = new Rcon();
let client = new Rcon({
packetResponseTimeout: 2000,
maxPending: 1
});
client.connect({
host: 'localhost',
port: Number(process.env.RCONPORT) || instconf.clientPort,
password: instconf.clientPassword,
timeout: 5000
password: instconf.clientPassword
});
client.onDidAuthenticate(() => {
console.log('Clusterio | RCON Authenticated!');