Fix ColorClock.Stop() to report timeout failure by xDeeKay · Pull Request #35 · TeamAntumbra/wintumbra · GitHub
Skip to content

Fix ColorClock.Stop() to report timeout failure - #35

Merged
walshie4 merged 1 commit into
TeamAntumbra:masterfrom
xDeeKay:fix/colorclock-stop-return-value
Aug 4, 2026
Merged

Fix ColorClock.Stop() to report timeout failure#35
walshie4 merged 1 commit into
TeamAntumbra:masterfrom
xDeeKay:fix/colorclock-stop-return-value

Conversation

@xDeeKay

@xDeeKay xDeeKay commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Stop() always returned true even when the background driver task failed to complete within the wait timeout, unlike every other driver (ExampleGlowDriver, HSVFade, SinFade, NeonFade), which return false in that case so callers know the stop didn't succeed and the task wasn't disposed.

Testing: ColorClock isn't reachable from the app's UI, so there was no way to test it by clicking around. Instead I wrote a small separate test program that runs ColorClock directly, starts it, then stops it before it's actually ready to finish. Before the fix, Stop() always reported success even when it hadn't actually stopped. Now it correctly reports failure in that case, and still reports success for a normal stop.

Stop() always returned true even when the background driver task
failed to complete within the wait timeout, unlike every other driver
(ExampleGlowDriver, HSVFade, SinFade, NeonFade), which return false in
that case so callers know the stop didn't succeed and the task wasn't
disposed.
@walshie4
walshie4 merged commit f088b80 into TeamAntumbra:master Aug 4, 2026
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.

2 participants