decrease heartbeat and remove output

This commit is contained in:
shoopea
2026-03-31 22:20:42 +02:00
parent e20d64ba31
commit 01eeb9ce2d

View File

@@ -86,7 +86,7 @@ class RconManager {
}, 5000); // 5 seconds timeout }, 5000); // 5 seconds timeout
}); });
let status = await Promise.race([status_promise, timeout_promise]); let status = await Promise.race([status_promise, timeout_promise]);
console.log("HEARTBEAT SUCCESS", server_id) //console.log("HEARTBEAT SUCCESS", server_id)
} catch (error) { } catch (error) {
console.log("Error in connecting to the server, reconnecting..... ERROR:", error); console.log("Error in connecting to the server, reconnecting..... ERROR:", error);
await this.disconnect_rcon(server_id); await this.disconnect_rcon(server_id);
@@ -129,7 +129,7 @@ class RconManager {
authenticated: rcon_connection.isAuthenticated() authenticated: rcon_connection.isAuthenticated()
}; };
if (rcon_connection.isConnected() && 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; return;
} catch (error) { } catch (error) {