diff --git a/components/login.js b/components/login.js index 6eceded..6071ac5 100644 --- a/components/login.js +++ b/components/login.js @@ -68,6 +68,10 @@ SteamCommunity.prototype._modernLogin = function(logOnDetails) { reject(err); }); + session.on('timeout', () => { + reject(new Error('Login timed out')); + }); + try { let startResult = await session.startWithCredentials({ accountName: logOnDetails.accountName,