Fixed formatting in gamedig query function

This commit is contained in:
Björn Dahlgren 2015-04-25 12:17:48 +02:00
parent fcd02b3ccd
commit a7ec32a7c6

View File

@ -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() {