diff options
author | Sven Gothel <[email protected]> | 2022-05-16 08:13:49 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2022-05-16 08:13:49 +0200 |
commit | cc53af990263bfa09947ad3127e0de6a6ffcb493 (patch) | |
tree | fc0972e8bb4afb4823ab0c401b23c0e0689db2a2 /java | |
parent | 6d04f4ebfebc0592a9a0dcc781f1056f88504327 (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.java | 2 |
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(); |