diff options
author | Sven Gothel <[email protected]> | 2020-05-03 03:40:41 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-05-03 03:40:41 +0200 |
commit | 00e5cfb31c5f8ad083525c07dd0b2ab019ac87b6 (patch) | |
tree | 524b5c5a87def039d7a6b19fd148d9aed1387a6d /api/direct_bt/DBTManager.hpp | |
parent | 68eec28811bee0aab06b34d3e1d3a0d079ad639a (diff) |
DBTManager::close(): Clear adapterInfos (avoiding re-entry failure); Java deleteImpl(): Calls close().
DBTManager::close(): Clear adapterInfos (avoiding re-entry failure), make it functional.
Java deleteImpl(): Calls close(), avoiding same on JVM shutdown.
Diffstat (limited to 'api/direct_bt/DBTManager.hpp')
-rw-r--r-- | api/direct_bt/DBTManager.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/api/direct_bt/DBTManager.hpp b/api/direct_bt/DBTManager.hpp index f147c3a6..8b0ba483 100644 --- a/api/direct_bt/DBTManager.hpp +++ b/api/direct_bt/DBTManager.hpp @@ -128,7 +128,6 @@ namespace direct_bt { DBTManager(const BTMode btMode); DBTManager(const DBTManager&) = delete; void operator=(const DBTManager&) = delete; - void close(); std::shared_ptr<AdapterInfo> initAdapter(const uint16_t dev_id, const BTMode btMode); void shutdownAdapter(const uint16_t dev_id); @@ -171,6 +170,8 @@ namespace direct_bt { } ~DBTManager() { close(); } + void close(); + std::string get_java_class() const override { return java_class(); } |