Skip to content

Commit

Permalink
Relogin on Proxy Timeout (during Steam maintenance)
Browse files Browse the repository at this point in the history
  • Loading branch information
Step7750 committed Apr 20, 2023
1 parent b641649 commit c6f28e2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@ class Bot extends EventEmitter {
if (err.eresult && login_error_msgs[err.eresult] !== undefined) {
winston.error(this.username + ': ' + login_error_msgs[err.eresult]);
}

// Yes, checking for string errors sucks, but we have no other attributes to check
// this error against.
if (err.toString().includes('Proxy connection timed out')) {
this.steamClient.relog();
}
});

this.steamClient.on('disconnected', (eresult, msg) => {
Expand Down

0 comments on commit c6f28e2

Please sign in to comment.