From cc53af990263bfa09947ad3127e0de6a6ffcb493 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 16 May 2022 08:13:49 +0200 Subject: 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. --- java/org/direct_bt/BTDeviceRegistry.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'java') 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(); -- cgit v1.2.3