summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2022-05-16 08:13:49 +0200
committerSven Gothel <[email protected]>2022-05-16 08:13:49 +0200
commitcc53af990263bfa09947ad3127e0de6a6ffcb493 (patch)
treefc0972e8bb4afb4823ab0c401b23c0e0689db2a2 /java
parent6d04f4ebfebc0592a9a0dcc781f1056f88504327 (diff)
Removes using the 'device processing' list, as already the case for the trial tests
Commit ca228cd0512be4642a41468ff92e688dbf296fcd defined that AdapterstatusListener::deviceFound() is only called if not already connected and if initially found . This change removes using the 'device processing' list, as already the case for the trial tests.
Diffstat (limited to 'java')
-rw-r--r--java/org/direct_bt/BTDeviceRegistry.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/org/direct_bt/BTDeviceRegistry.java b/java/org/direct_bt/BTDeviceRegistry.java
index 553c5413..77c55703 100644
--- a/java/org/direct_bt/BTDeviceRegistry.java
+++ b/java/org/direct_bt/BTDeviceRegistry.java
@@ -144,7 +144,7 @@ public class BTDeviceRegistry {
}
}
public static boolean isWaitingForAnyDevice() {
- return waitForDevices.size()>0;
+ return waitForDevices.size()==0;
}
public static int getWaitForDevicesCount() {
return waitForDevices.size();