Change-Id: I24947070a50e787dabeadb8e15192eb68b687944
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/18005
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
oclog() << "listenResListWithErrorCallback(): failed to create resource. clientResponse: "
<< result << std::flush;
- //send the error callback
- std::thread exec(context->errorCallback, clientResponse->resourceUri, result);
+ //send the error callback
+ std::string uri = clientResponse->resourceUri;
+ std::thread exec(context->errorCallback, uri, result);
exec.detach();
return OC_STACK_KEEP_TRANSACTION;
}