Files
mediadeck/tests
Denis Defolie 2a4f434f01 Fix MPRIS player never listed when it signals during an attach attempt
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>
2026-10-30 15:51:19 +01:00
..