Change-Id: I2454bb3f24c0aa3f821a24d494d8ab7db2d52bf2
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13717
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
isAttached = true;
}
+ // stop scan
+ CAResult_t ret = CALEClientStopScan();
+ if (CA_STATUS_OK != ret)
+ {
+ OIC_LOG(INFO, TAG, "CALEClientStopScan has failed");
+ }
+
if (g_leScanCallback)
{
(*env)->DeleteGlobalRef(env, g_leScanCallback);
g_uuidList = NULL;
}
- CAResult_t ret = CALEClientRemoveAllDeviceState();
+ ret = CALEClientRemoveAllDeviceState();
if (CA_STATUS_OK != ret)
{
OIC_LOG(ERROR, TAG, "CALEClientRemoveAllDeviceState has failed");