mirror of
https://github.com/Dahlgren/arma-server-web-admin.git
synced 2024-08-30 17:22:10 +00:00
Fixed formatting in gamedig query function
This commit is contained in:
parent
fcd02b3ccd
commit
a7ec32a7c6
@ -45,21 +45,21 @@ Server.prototype.update = function (options) {
|
||||
Server.prototype.queryStatus = function() {
|
||||
var self = this;
|
||||
Gamedig.query(
|
||||
{
|
||||
type: queryTypes[config.game],
|
||||
host: '127.0.0.1',
|
||||
port: self.port,
|
||||
},
|
||||
function(state) {
|
||||
if(state.error) {
|
||||
self.state = null;
|
||||
} else {
|
||||
self.state = state;
|
||||
}
|
||||
{
|
||||
type: queryTypes[config.game],
|
||||
host: '127.0.0.1',
|
||||
port: self.port,
|
||||
},
|
||||
function(state) {
|
||||
if(state.error) {
|
||||
self.state = null;
|
||||
} else {
|
||||
self.state = state;
|
||||
}
|
||||
|
||||
self.emit('state');
|
||||
}
|
||||
);
|
||||
self.emit('state');
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
Server.prototype.start = function() {
|
||||
|
Loading…
Reference in New Issue
Block a user