diff --git a/lib/server.js b/lib/server.js index af3ca0f..9b4c013 100644 --- a/lib/server.js +++ b/lib/server.js @@ -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() {