aboutsummaryrefslogtreecommitdiffstats
path: root/java/direct_bt
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-06-09 20:57:22 +0200
committerSven Gothel <[email protected]>2020-06-09 20:57:22 +0200
commit02c270b54ba9845b1cdeccb793504b61ecffb6dd (patch)
treee2d45bb9a599f1f6b0d0cdbecdcdfee36485be8a /java/direct_bt
parent888cda5041d45c98b93c2ed506d08f3f453240f8 (diff)
Java/C++: start/stop discovery shall return true even if operation not required
Diffstat (limited to 'java/direct_bt')
-rw-r--r--java/direct_bt/tinyb/DBTAdapter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/direct_bt/tinyb/DBTAdapter.java b/java/direct_bt/tinyb/DBTAdapter.java
index 4cbc071f..cc58307f 100644
--- a/java/direct_bt/tinyb/DBTAdapter.java
+++ b/java/direct_bt/tinyb/DBTAdapter.java
@@ -320,7 +320,7 @@ public class DBTAdapter extends DBTObject implements BluetoothAdapter
if( isDiscovering.get() ) {
return stopDiscoveryImpl(); // event callbacks will be generated by implementation
}
- return false;
+ return true;
}
private native boolean stopDiscoveryImpl() throws BluetoothException;