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