diff options
author | Sven Gothel <[email protected]> | 2020-08-23 09:49:55 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-08-23 09:49:55 +0200 |
commit | 1b2a1eaae24734eda2708550aa17bfce6b13cac8 (patch) | |
tree | ef6a83534c49f6ade51e711b899e71503291e60e /java | |
parent | e7164946014ab8d5c5587fe8f69e6262aed64bc5 (diff) |
DBTAdapter::stopDiscover() now returns the boolean result w/ proper native -> java proagation
As we use HCIHandler's le_enable_scan etc, the result of start/stop discovery is meaningful now.
This especially as the HCI command is of CMD_COMPLETE class and hence completes its operation.
See commit e7164946014ab8d5c5587fe8f69e6262aed64bc5
Diffstat (limited to 'java')
-rw-r--r-- | java/jni/direct_bt/DBTAdapter.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/java/jni/direct_bt/DBTAdapter.cxx b/java/jni/direct_bt/DBTAdapter.cxx index 7a4ddaad..6e215d91 100644 --- a/java/jni/direct_bt/DBTAdapter.cxx +++ b/java/jni/direct_bt/DBTAdapter.cxx @@ -563,8 +563,7 @@ jboolean Java_direct_1bt_tinyb_DBTAdapter_stopDiscoveryImpl(JNIEnv *env, jobject { try { DBTAdapter *adapter = getDBTObject<DBTAdapter>(env, obj); - adapter->stopDiscovery(); - return JNI_TRUE; + return adapter->stopDiscovery(); } catch(...) { rethrow_and_raise_java_exception(env); } |