From: jyong2.kim Date: Thu, 24 Mar 2016 10:35:01 +0000 (+0900) Subject: [IOT-1039]Fixed for jira issue. X-Git-Tag: 1.2.0+RC1~439 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c5cf2081b4b6e46c34d2051363b9d5b9d7215939;p=platform%2Fupstream%2Fiotivity.git [IOT-1039]Fixed for jira issue. It is fix for a RH android sample application. When the call terminate RH android sample, It expected to return success but return error. terminate API is try to terminate a thread, but it was already terminated at other api. Change-Id: I52b79252f1d952917729f7716d381303b57501a6 Signed-off-by: jyong2.kim Reviewed-on: https://gerrit.iotivity.org/gerrit/6287 Tested-by: jenkins-iotivity Reviewed-by: Hun-je Yeon Reviewed-by: Madan Lanka Reviewed-by: Uze Choi (cherry picked from commit 8db0090a12cd8d994cc87d919f1329eb4fdbbc68) Reviewed-on: https://gerrit.iotivity.org/gerrit/7691 --- diff --git a/service/resource-hosting/android/resource_hosting/jni/ResourceHosing_JNI.cpp b/service/resource-hosting/android/resource_hosting/jni/ResourceHosing_JNI.cpp index dde9d72..4f88097 100644 --- a/service/resource-hosting/android/resource_hosting/jni/ResourceHosing_JNI.cpp +++ b/service/resource-hosting/android/resource_hosting/jni/ResourceHosing_JNI.cpp @@ -117,10 +117,6 @@ JNIEXPORT jint JNICALL Java_org_iotivity_ResourceHosting_ResourceHosting_Resourc threadRun = false; ocProcessThread.join(); } - else - { - return (jint)HOSTING_THREAD_ERROR; - } return (jint)OCSTACK_OK; }