Added some more explicit error handling if we try to do things while logged out

This commit is contained in:
Alexander Corn 2018-02-27 01:40:59 -05:00
parent 238a36de0f
commit eb609b5c42

View File

@ -219,6 +219,12 @@ SteamCommunity.prototype.uploadAvatar = function(image, format, callback) {
format = null;
}
// are we logged in?
if (!this.steamID) {
callback(new Error("Not Logged In"));
return;
}
var self = this;
if(image instanceof Buffer) {