Skip to content

Fix Firefox network idle timeout when no network events arrive#2394

Merged
soulgalore merged 1 commit into
mainfrom
fix-network-idle-nan-timestamp
Apr 23, 2026
Merged

Fix Firefox network idle timeout when no network events arrive#2394
soulgalore merged 1 commit into
mainfrom
fix-network-idle-nan-timestamp

Conversation

@soulgalore
Copy link
Copy Markdown
Member

he network idle timestamps were initialized as undefined, so Math.max(undefined, undefined) returned NaN and the idle check never triggered when no network events arrived after subscribing. Initialize timestamps to Date.now() so the idle timer starts immediately.

Co-authored-by: Claude Opus 4.6 (1M context) noreply@anthropic.com
Change-Id: Iea3eb58f248971d540416c84a30b62efba9372e8

he network idle timestamps were initialized as undefined, so
Math.max(undefined, undefined) returned NaN and the idle check
never triggered when no network events arrived after subscribing.
Initialize timestamps to Date.now() so the idle timer starts
immediately.

Co-authored-by: Claude Opus 4.6 (1M context) noreply@anthropic.com
Change-Id: Iea3eb58f248971d540416c84a30b62efba9372e8
@soulgalore soulgalore merged commit bf2aebd into main Apr 23, 2026
14 checks passed
@soulgalore soulgalore deleted the fix-network-idle-nan-timestamp branch April 23, 2026 09:50
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.

1 participant