mirror of
https://github.com/deunix-educ/mediadeck.git
synced 2026-11-25 04:39:42 +01:00
2a4f434f01
An attach attempt subscribes to PropertiesChanged before its initial read. A signal arriving during that read called _schedule(), which cancelled the pending add task (the one running the attempt) and replaced it with a refresh of a player that was never registered: the player stayed unlisted and no further attempt was made. The signal handler now acts only on a registered player. Found through an intermittently failing test; a deterministic regression test blocks the first read, emits the signal, then releases it. It fails without the fix, and test_mpris went from about 1 failure in 8 to 0 in 40. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>