Skip to content

Commit 26a0e21

Browse files
authored
Merge pull request #135 from csgofloat/fix/relogin-proxy-timeout
Relogin on Proxy Timeout (during Steam maintenance)
2 parents b641649 + c6f28e2 commit 26a0e21

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/bot.js

+6
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,12 @@ class Bot extends EventEmitter {
104104
if (err.eresult && login_error_msgs[err.eresult] !== undefined) {
105105
winston.error(this.username + ': ' + login_error_msgs[err.eresult]);
106106
}
107+
108+
// Yes, checking for string errors sucks, but we have no other attributes to check
109+
// this error against.
110+
if (err.toString().includes('Proxy connection timed out')) {
111+
this.steamClient.relog();
112+
}
107113
});
108114

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

0 commit comments

Comments
 (0)