aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/java/DBTPeripheral00.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/java/DBTPeripheral00.java b/examples/java/DBTPeripheral00.java
index 8589258e..1de34acb 100644
--- a/examples/java/DBTPeripheral00.java
+++ b/examples/java/DBTPeripheral00.java
@@ -621,7 +621,9 @@ public class DBTPeripheral00 {
// already unpaired
stopAdvertising(device.getAdapter(), "device-disconnected");
+ device.remove();
BTDeviceRegistry.removeFromProcessingDevices(device.getAddressAndType());
+
try {
Thread.sleep(100); // wait a little (FIXME: Fast restart of advertising error)
} catch (final InterruptedException e) { }