(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>
Wed, 23 Mar 2016 04:04:10 +0000 (04:04 +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>
resource/csdk/connectivity/src/bt_le_adapter/android/caleclient.c

index d49460c..f3cfe2f 100644 (file)
@@ -627,6 +627,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;
+                            }
                         }
                     }
                 }