Properly handle steammobile: protocol error meaning we're not logged in

This commit is contained in:
Alexander Corn 2016-03-07 01:32:20 -05:00
parent 1884ceb7d9
commit 237d3786a2

View File

@ -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;
}