From aac26212d7c9f6c39797e62e46fef7865fb3fd3f Mon Sep 17 00:00:00 2001 From: Alexander Corn Date: Wed, 23 Mar 2016 19:03:55 -0400 Subject: [PATCH] Fixed sessionExpired event always being emitted for confirmation errors --- components/confirmations.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/confirmations.js b/components/confirmations.js index 87689e6..8567646 100644 --- a/components/confirmations.js +++ b/components/confirmations.js @@ -18,10 +18,10 @@ SteamCommunity.prototype.getConfirmations = function(time, key, callback) { if(err) { if (err.message == "Invalid protocol: steammobile:") { err.message = "Not Logged In"; + self._notifySessionExpired(err); } callback(err); - self._notifySessionExpired(err); return; }