mirror of
https://github.com/AsgardEternal/SquadJS.git
synced 2024-09-28 14:04:25 -05:00
Fix lack of updating of server information
This commit is contained in:
parent
17cfe83b44
commit
6a85afadf2
@ -56,14 +56,14 @@ export default class Server extends EventEmitter {
|
||||
this.updateInterval
|
||||
);
|
||||
|
||||
setTimeout(async () => {
|
||||
setInterval(async () => {
|
||||
const data = await this.rcon.getMapInfo();
|
||||
this.currentLayer = data.currentLayer;
|
||||
this.nextLayer = data.nextLayer;
|
||||
this.emit(SERVER_LAYERS_UPDATED, data);
|
||||
}, this.updateInterval);
|
||||
|
||||
setTimeout(async () => {
|
||||
setInterval(async () => {
|
||||
const data = await Gamedig.query({
|
||||
type: 'squad',
|
||||
host: this.host,
|
||||
|
Loading…
Reference in New Issue
Block a user