diff options
Diffstat (limited to 'java/direct_bt/tinyb/DBTManager.java')
-rw-r--r-- | java/direct_bt/tinyb/DBTManager.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/java/direct_bt/tinyb/DBTManager.java b/java/direct_bt/tinyb/DBTManager.java index 8dee59a5..45faed64 100644 --- a/java/direct_bt/tinyb/DBTManager.java +++ b/java/direct_bt/tinyb/DBTManager.java @@ -315,8 +315,8 @@ public class DBTManager implements BluetoothManager @Override public void shutdown() { for(final Iterator<BluetoothAdapter> ia= adapters.iterator(); ia.hasNext(); ) { - final BluetoothAdapter a = ia.next(); - a.close(); + final DBTAdapter a = (DBTAdapter)ia.next(); + a.close( true ); } adapters.clear(); deleteImpl(nativeInstance); |