From 237d3786a2c397cedd5fd73461b13b46e7322fca Mon Sep 17 00:00:00 2001 From: Alexander Corn Date: Mon, 7 Mar 2016 01:32:20 -0500 Subject: [PATCH] Properly handle steammobile: protocol error meaning we're not logged in --- components/confirmations.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/confirmations.js b/components/confirmations.js index 261d365..87689e6 100644 --- a/components/confirmations.js +++ b/components/confirmations.js @@ -16,7 +16,12 @@ SteamCommunity.prototype.getConfirmations = function(time, key, callback) { request(this, "conf", key, time, "conf", null, false, function(err, body) { if(err) { + if (err.message == "Invalid protocol: steammobile:") { + err.message = "Not Logged In"; + } + callback(err); + self._notifySessionExpired(err); return; }