Skip to content

Commit

Permalink
Properly call debug event instead of nonexistent _debug
Browse files Browse the repository at this point in the history
  • Loading branch information
DoctorMcKay committed Sep 13, 2023
1 parent c203994 commit 3c167f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/09-logon.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,13 +367,13 @@ class SteamUserLogon extends SteamUserMachineAuth {
// communicate with Steam. Errors for invalid credentials are handled elsewhere, so we only need to
// emit ServiceUnavailable here since this should be a transient error.

this._debug(`steam-session error: ${err.message}`);
this.emit('debug', `steam-session error: ${err.message}`);
this._handleLogOnResponse({eresult: EResult.ServiceUnavailable});
resolve(false);
});

session.on('timeout', () => {
this._debug('steam-session timeout');
this.emit('debug', 'steam-session timeout');
this._handleLogOnResponse({eresult: EResult.ServiceUnavailable});
resolve(false);
});
Expand Down

0 comments on commit 3c167f7

Please sign in to comment.