Switch hostIsAlive() to be synchronous
This commit is contained in:
parent
27ccfb467c
commit
fd812da425
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user