Skip to content

fix(app): cache background refresh infinite loop during init#6255

Open
2clerway wants to merge 3 commits into
modrinth:mainfrom
2clerway:main
Open

fix(app): cache background refresh infinite loop during init#6255
2clerway wants to merge 3 commits into
modrinth:mainfrom
2clerway:main

Conversation

@2clerway
Copy link
Copy Markdown

Only spawn cache background refresh tasks when State is already initialized. Prevents the spawned task from hanging forever in the State::get() busy-wait loop when it fires before init completes.

Fixes the issue in this reddit post

Only spawn cache background refresh tasks when State is already
initialized. Prevents the spawned task from hang forever in the
State::get() busy-wait loop when it fires before init completes.
@modrinth-bot
Copy link
Copy Markdown
Member

Pull request changelog

App

Added

Changed

Deprecated

Removed

Fixed

Security

Website

Added

Changed

Deprecated

Removed

Fixed

Security

Hosting

Added

Changed

Deprecated

Removed

Fixed

Security

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants