Commit 52cdec9c authored by Vitalii Irkha's avatar Vitalii Irkha Committed by Nathan Heldt-Sheller

[IOT-2788] Unlink Pairwise things doesn't work

This is workaround.

One of callbacks provide OC_STACK_INVALID_QUERY instead of OC_STACK_RESOURCE_DELETED.
Details please see in https://jira.iotivity.org/browse/IOT-2788.

Change-Id: Iccf2d6e5308ba2bc8322fa66c3acec395ef21811
Signed-off-by: default avatarVitalii Irkha <v.irkha@samsung.com>
parent 4364f15e
......@@ -2090,6 +2090,7 @@ static OCStackApplicationResult SRPUnlinkDevice2CB(void *unlinkCtx, OCDoHandle h
if (clientResponse)
{
OIC_LOG(DEBUG, TAG, "Valid client response for device 2");
clientResponse->result = OC_STACK_RESOURCE_DELETED;
registerResultForUnlinkDevices(unlinkData, clientResponse->result, IDX_SECOND_DEVICE_RES);
if (OC_STACK_RESOURCE_DELETED == clientResponse->result)
......@@ -2154,6 +2155,7 @@ static OCStackApplicationResult SRPUnlinkDevice1CB(void *unlinkCtx, OCDoHandle h
if (clientResponse)
{
OIC_LOG(DEBUG, TAG, "Valid client response for device 1");
clientResponse->result = OC_STACK_RESOURCE_DELETED;
registerResultForUnlinkDevices(unlinkData, clientResponse->result, IDX_FIRST_DEVICE_RES);
if (OC_STACK_RESOURCE_DELETED == clientResponse->result)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment