Skip to content

linux-rust: replace stale playback listeners on reconnect#688

Open
mmatczuk wants to merge 1 commit into
librepods-org:linux/rustfrom
mmatczuk:fix/linux-replace-playback-listeners
Open

linux-rust: replace stale playback listeners on reconnect#688
mmatczuk wants to merge 1 commit into
librepods-org:linux/rustfrom
mmatczuk:fix/linux-replace-playback-listeners

Conversation

@mmatczuk

Copy link
Copy Markdown

Summary

  • track playback listener abort handles by AirPods MAC
  • stop the previous listener when the same AirPods reconnect
  • keep listeners for different connected AirPods independent
  • add a lifecycle test covering replacement and per-device scoping

Validation

  • cargo check --manifest-path linux-rust/Cargo.toml
  • cargo nextest run --manifest-path linux-rust/Cargo.toml

Fixes #683

AirPods reconnection creates a new MediaController while the old listener task keeps polling. Track listener abort handles by device MAC so a replacement stops only its predecessor and does not disable listeners for other connected AirPods.
@Cyclotron92

Copy link
Copy Markdown

thanks

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