when BT adapter is off -> on,
scan logic is not working
because condition variable was freed.
Change-Id: Ifa244c44d57d60fea84ab42f58b100ab3cf8d147
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10477
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
g_threadWriteCharacteristicCond = ca_cond_new();
}
+ if (!g_threadScanIntervalCond)
+ {
+ g_threadScanIntervalCond = ca_cond_new();
+ }
+
CAResult_t ret = CALEClientStartScanWithInterval();
if (CA_STATUS_OK != ret)
{