If we remove clientCB when we received error message from CA,
we cann't receive the other response message in case request message
is sent over multi transport. so clientCB shouldn't be removed.
Change-Id: I5289fe4892a32f7da1d84cf3f50493e260e4eada
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10257
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
}
env->CallVoidMethod(jListener, midL, ex, env->NewStringUTF(uri.c_str()));
- checkExAndRemoveListener(env);
if (JNI_EDETACHED == ret)
{
g_jvm->DetachCurrentThread();
response.result = CAResultToOCStackResult(errorInfo->result);
cbNode->callBack(cbNode->context, cbNode->handle, &response);
- FindAndDeleteClientCB(cbNode);
}
OIC_LOG(INFO, TAG, "Exit HandleCAErrorResponse");