diff --git a/classes/CSteamUser.js b/classes/CSteamUser.js index 046acfa..d6dc554 100644 --- a/classes/CSteamUser.js +++ b/classes/CSteamUser.js @@ -43,6 +43,7 @@ SteamCommunity.prototype.getSteamUser = function(id, callback) { if(!result.profile.steamID64 || !result.profile.onlineState) { callback(new Error("No valid response")); + return; } callback(null, new CSteamUser(self, result.profile, customurl));