decrease heartbeat and remove output
This commit is contained in:
@@ -86,7 +86,7 @@ class RconManager {
|
||||
}, 5000); // 5 seconds timeout
|
||||
});
|
||||
let status = await Promise.race([status_promise, timeout_promise]);
|
||||
console.log("HEARTBEAT SUCCESS", server_id)
|
||||
//console.log("HEARTBEAT SUCCESS", server_id)
|
||||
} catch (error) {
|
||||
console.log("Error in connecting to the server, reconnecting..... ERROR:", error);
|
||||
await this.disconnect_rcon(server_id);
|
||||
@@ -129,7 +129,7 @@ class RconManager {
|
||||
authenticated: rcon_connection.isAuthenticated()
|
||||
};
|
||||
if (rcon_connection.isConnected() && rcon_connection.isAuthenticated()) {
|
||||
this.details[server_id].heartbeat_interval = setInterval(async () => this.send_heartbeat(server_id, server), 5000);
|
||||
this.details[server_id].heartbeat_interval = setInterval(async () => this.send_heartbeat(server_id, server), 60000);
|
||||
}
|
||||
return;
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user