try
{
attrs = parseGetSetCallback(clientResponse);
+ OIC_LOG_V(DEBUG, TAG, "%s: call response callback", __func__);
+ std::thread exec(context->callback, result, attrs);
+ exec.detach();
}
catch(OC::OCException& e)
{
result = e.code();
}
-
- OIC_LOG_V(DEBUG, TAG, "%s: call response callback", __func__);
- std::thread exec(context->callback, result, attrs);
- exec.detach();
+ catch (std::exception &e)
+ {
+ oclog() << "Exception in KeepAliveRespCallback(), ignoring response: "
+ << e.what() << std::flush;
+ }
return OC_STACK_DELETE_TRANSACTION;
}