Compare commits

...

2 Commits

Author SHA1 Message Date
Alexander Corn
bb917af86e 3.23.3 2016-08-10 18:55:36 -04:00
Alexander Corn
17f51b9caa Fixed double callbacks on some json errors (fixes #123) 2016-08-10 18:55:23 -04:00
2 changed files with 3 additions and 3 deletions

View File

@@ -60,10 +60,10 @@ SteamCommunity.prototype.httpRequest = function(uri, options, callback, source)
"jsonError": jsonError
});
if (hasCallback) {
if (hasCallback && !(httpError || communityError || tradeError)) {
if (jsonError) {
callback.call(self, jsonError, response);
} else if (!(httpError || communityError || tradeError)) {
} else {
callback.apply(self, arguments);
}
}

View File

@@ -1,6 +1,6 @@
{
"name": "steamcommunity",
"version": "3.23.2",
"version": "3.23.3",
"description": "Provides an interface for logging into and interacting with the Steam Community website",
"keywords": ["steam", "steam community"],
"homepage": "https://github.com/DoctorMcKay/node-steamcommunity",