From 02c270b54ba9845b1cdeccb793504b61ecffb6dd Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 9 Jun 2020 20:57:22 +0200 Subject: Java/C++: start/stop discovery shall return true even if operation not required --- java/direct_bt/tinyb/DBTAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'java/direct_bt') 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; -- cgit v1.2.3