Merge pull request #369 from lrftw/fix/login-timeout

Fix login hanging indefinitely on steam-session timeout
This commit is contained in:
DoctorMcKay
2026-07-12 17:09:58 -04:00
committed by GitHub

View File

@@ -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,