Fixed sessionExpired event always being emitted for confirmation errors

This commit is contained in:
Alexander Corn 2016-03-23 19:03:55 -04:00
parent d8d99a804f
commit aac26212d7

View File

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