Skip to content

Fix login hanging indefinitely on steam-session timeout#369

Open
lrftw wants to merge 1 commit into
DoctorMcKay:masterfrom
lrftw:fix/login-timeout
Open

Fix login hanging indefinitely on steam-session timeout#369
lrftw wants to merge 1 commit into
DoctorMcKay:masterfrom
lrftw:fix/login-timeout

Conversation

@lrftw

@lrftw lrftw commented Jul 3, 2026

Copy link
Copy Markdown

Fixes #368

Modern login in components/login.js listens for 'authenticated' and
'error' events from steam-session's LoginSession, but not the 'timeout'
event. When loginTimeout (default 30s) elapses, steam-session emits
'timeout' and calls cancelLoginAttempt() without emitting an 'error'
event, causing the Promise to never settle and the login callback to
never be called.

Add a 'timeout' event listener that rejects the Promise with a
descriptive error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

_modernLogin hangs forever when steam-session emits timeout event

1 participant