(IOT-997) modified checking scanned device for unicast
authorjihwan.seo <jihwan.seo@samsung.com>
Tue, 22 Mar 2016 08:22:18 +0000 (17:22 +0900)
committerJon A. Cruz <jon@joncruz.org>
Thu, 24 Mar 2016 23:10:45 +0000 (23:10 +0000)
Change-Id: I48854d19c95f0af6fe3a0e0f28d35a4127262ab1
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/6171
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
(cherry picked from commit 993cf22827e0d6ca6252ed93c48c164f46d0d54e)
Reviewed-on: https://gerrit.iotivity.org/gerrit/6191

resource/csdk/connectivity/src/bt_le_adapter/android/caleclient.c

index c21904b..0594fc1 100644 (file)
@@ -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;
+                            }
                         }
                     }
                 }