Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add timeout for sounddir modification scanning for super large sound dir and/or slow filesystem #1509

Merged

Conversation

shenlebantongying
Copy link
Collaborator

@shenlebantongying shenlebantongying commented May 10, 2024

close #1508
related #1417

4 seconds is more than enough unless the soundDir contains 10k-ish folders and obtaining modification time is for some reason slow.

Currently, I don't know how to detect modifications without checking every folder.

Wish we have this to tell that we silently failed #1440

The workaround is just don't have that many folders, put all sound files in one folder.

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
B Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

@shenlebantongying shenlebantongying merged commit 2cd6ed0 into xiaoyifang:staged May 10, 2024
12 of 13 checks passed
@shenlebantongying shenlebantongying deleted the fix/timeout-sounddir branch May 10, 2024 01:05
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.

Long first initiation after system startup
1 participant