Skip to content

Allow the splash animation to restart after an interruption - #548

Open
gztong666 wants to merge 1 commit into
Guardsquare:masterfrom
gztong666:fix/splash-animation-restart-after-interruption
Open

gztong666 wants to merge 1 commit into
Guardsquare:masterfrom
gztong666:fix/splash-animation-restart-after-interruption

Conversation

@gztong666

Copy link
Copy Markdown

If the splash animation worker is interrupted while sleeping, it exits without clearing its field. A later start() sees the dead thread and never starts a replacement. Clear ownership on worker exit and make ownership changes check the active worker, so an exiting old thread cannot clear a new one.

Compiled the splash classes with JDK 17 and ran a headless regression against the original and the patched implementations. It waits for the animation worker to sleep, interrupts it and calls start() again. The original implementation retains the dead worker; the patched implementation starts a different worker.

OpenAI Codex assisted with the patch and verification.

@sonarqubecloud

sonarqubecloud Bot commented Dec 5, 2026

Copy link
Copy Markdown

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