Skip to content

Commit

Permalink
Return the list of servers if ServerBrowser.prototype.get is given no…
Browse files Browse the repository at this point in the history
… arguments
  • Loading branch information
gdaws committed Oct 9, 2012
1 parent 24dac7c commit 02641ca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/gameserver/server_browser.js
Expand Up @@ -154,6 +154,11 @@ ServerBrowser.prototype.removeServer = function(hostname, port){
}; };


ServerBrowser.prototype.get = function(hostname, port){ ServerBrowser.prototype.get = function(hostname, port){

if(arguments.length === 0){
return this._servers;
}

return this._serversByID[hostname + ":" + port]; return this._serversByID[hostname + ":" + port];
}; };


Expand Down

0 comments on commit 02641ca

Please sign in to comment.