Jump to content
McKay Development

charon

Member
  • Content Count

    1
  • Joined

  • Last visited

  1. SteamUser.prototype.logOn = function(details) { // Delay the actual logon by one tick, so if users call logOn from the error event they won't get a crash because // they appear to be already logged on (the steamID property is set to null only *after* the error event is emitted) process.nextTick(async () => { if (this.steamID) { throw new Error("Already logged on, cannot log on again"); } this.steamID = null; this.limitations = null; //.......... } } after v4.5.1, the logOn method use the nextTick to do login action, after then, how to get the Error in the nextT
×
×
  • Create New...