Switch hostIsAlive() to be synchronous

This commit is contained in:
Junior 2024-09-25 15:29:18 +00:00
parent 27ccfb467c
commit fd812da425

View File

@ -37,7 +37,7 @@ class Server {
if ( serverObj.active ) this.active = serverObj.active;
}
async hostIsAlive() {
hostIsAlive() {
if ( !this.active || (this.rconAddress == "") ) return false;
try {
let res = ChildProcess.execSync('ping -c 1 -W 0.25 -q ' + this.rconAddress);