Change-Id: I4cd1fb23818a560449ae1ff3f2635c14ef093da7
Signed-off-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13435
Reviewed-by: Jongmin Choi <jminl.choi@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: dongik Lee <dongik.lee@samsung.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
while(g_LoopFlag)
{
- OCProcess();
+ if (OCProcess() != OC_STACK_OK)
+ {
+ OIC_LOG(ERROR, TAG, "OCStack process error");
+ g_LoopFlag = false;
+ break;
+ }
nanosleep(&timeout, NULL);
}
pthread_join(&oc_process_thread, NULL);
{
OIC_LOG_V(DEBUG, TAG, "OCCancel - %s : %d",
pDev->endpoint.addr, pDev->endpoint.port);
- OCCancel(pDev->handle,OC_HIGH_QOS,NULL,0);
+ if(OC_STACK_OK != OCCancel(pDev->handle,OC_HIGH_QOS,NULL,0))
+ {
+ OIC_LOG(ERROR, TAG, "Failed to remove registered callback");
+ }
}
PMDeleteDeviceList(pDInfo->pCandidateList);
}