Skip to content

Fix annoying Linux bluetooth connection bug#405

Merged
timschneeb merged 1 commit into
timschneeb:masterfrom
sulfrum8584:master
May 1, 2023
Merged

Fix annoying Linux bluetooth connection bug#405
timschneeb merged 1 commit into
timschneeb:masterfrom
sulfrum8584:master

Conversation

@sulfrum8584

Copy link
Copy Markdown
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
Copy Markdown
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

sLite commented Dec 9, 2023

Copy link
Copy Markdown

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