Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix annoying Linux bluetooth connection bug #405

Merged
merged 1 commit into from
May 1, 2023

Conversation

StegBrind
Copy link
Contributor

When you try to open up the app after your earbuds are paired and connected, it will throw you this error: "org.bluez.Error.Failed Operation already in progress". This happens because the BluetoothService attempts to connect to an already connected device. I see that in the code you expect BlueZException to be thrown with the error code "AlreadyConnected", but that usually doesn't happen, and instead you get the "Failed" error code with the above-mentioned error message. This is what basically causes the bug. And to fix this issue, we just need to check if the device already connected. It is easily fixable with just two lines of code.

Has anyone encountered this issue before? Because it looks like a common issue

@timschneeb
Copy link
Owner

Thanks! I think several people had this issue, but I wasn't able to reproduce it on my machine for some reason.

@timschneeb timschneeb merged commit f84c79b into timschneeb:master May 1, 2023
@sLite
Copy link

sLite commented Dec 9, 2023

Thank you! I haven't been able to use this app because of this.

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.

3 participants