mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2025-01-23 22:30:52 +08:00
Properly handle steammobile: protocol error meaning we're not logged in
This commit is contained in:
parent
1884ceb7d9
commit
237d3786a2
@ -16,7 +16,12 @@ SteamCommunity.prototype.getConfirmations = function(time, key, callback) {
|
|||||||
|
|
||||||
request(this, "conf", key, time, "conf", null, false, function(err, body) {
|
request(this, "conf", key, time, "conf", null, false, function(err, body) {
|
||||||
if(err) {
|
if(err) {
|
||||||
|
if (err.message == "Invalid protocol: steammobile:") {
|
||||||
|
err.message = "Not Logged In";
|
||||||
|
}
|
||||||
|
|
||||||
callback(err);
|
callback(err);
|
||||||
|
self._notifySessionExpired(err);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user