From d46e4c9aeffda350c5b4f12df67fac5c973afb7e Mon Sep 17 00:00:00 2001 From: "jihwan.seo" Date: Tue, 22 Mar 2016 17:22:18 +0900 Subject: [PATCH] (IOT-997) modified checking scanned device for unicast Change-Id: I48854d19c95f0af6fe3a0e0f28d35a4127262ab1 Signed-off-by: jihwan.seo Reviewed-on: https://gerrit.iotivity.org/gerrit/6171 Tested-by: jenkins-iotivity Reviewed-by: Jon A. Cruz (cherry picked from commit 993cf22827e0d6ca6252ed93c48c164f46d0d54e) Reviewed-on: https://gerrit.iotivity.org/gerrit/6191 --- resource/csdk/connectivity/src/bt_le_adapter/android/caleclient.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/resource/csdk/connectivity/src/bt_le_adapter/android/caleclient.c b/resource/csdk/connectivity/src/bt_le_adapter/android/caleclient.c index c21904b..0594fc1 100644 --- a/resource/csdk/connectivity/src/bt_le_adapter/android/caleclient.c +++ b/resource/csdk/connectivity/src/bt_le_adapter/android/caleclient.c @@ -672,6 +672,13 @@ CAResult_t CALEClientIsThereScannedDevices(JNIEnv *env, const char* address) } ca_mutex_unlock(g_deviceScanRetryDelayMutex); // time out + + // checking whether a target device is found while waiting for time-out. + if (CALEClientIsDeviceInScanDeviceList(env, address)) + { + devicesDiscovered = true; + break; + } } } } -- 2.7.4