Skip to content

android: avoid double sendPause when both AirPods are removed at once#572

Open
thisisAcidic wants to merge 1 commit intokavishdevar:mainfrom
thisisAcidic:cleanup-ear-detection-double-pause
Open

android: avoid double sendPause when both AirPods are removed at once#572
thisisAcidic wants to merge 1 commit intokavishdevar:mainfrom
thisisAcidic:cleanup-ear-detection-double-pause

Conversation

@thisisAcidic
Copy link
Copy Markdown
Contributor

When both ear detection bits flip from in to out in one packet, sendPause gets called twice. Once with force=true in the upper branch, then again at the bottom block. The second call is usually a no-op since music is already paused, but a timing race is possible.

This might affect #153, but no idea as i cant seem to reproduce it. Its a code cleanup atleast.

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