-
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Adapter isDiscovering() behaviour #38
Comments
The member The internal member does not need to be initialized with false, because that is the default for primitive boolean members in Java. The exception might occur because Setting the member and calling start/stopDiscovery on DBus is not atomic, so in the current code, DBus is called first, then the member is changed. If DBus throws an exception, setting the member to true/false is never called, so the I change the code to first set the member, then call DBus. |
Thanks for the explanation @hypfvieh Is there a timeline for a new release incorporating some of the recent fixes? |
no there is no timeline |
I am seeing some strange behaviour with the isDiscovering() call in BluetoothAdapter.
I am frequently getting the following error when calling stopDiscovery() despite the isDiscovering() function returning "true":
org.freedesktop.dbus.exceptions.DBusExecutionException: No discovery started
I guess this exception should also be caught in the BluetoothAdapter.stopDiscovery() function. I am also wondering whether initialising the
internalDiscover
variable to false would help this although I guess that assumption could lead to other problems...The text was updated successfully, but these errors were encountered: