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 <jyong2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/6287
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Hun-je Yeon <hunje.yeon@samsung.com>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit
8db0090a12cd8d994cc87d919f1329eb4fdbbc68)
Reviewed-on: https://gerrit.iotivity.org/gerrit/7691
threadRun = false;
ocProcessThread.join();
}
- else
- {
- return (jint)HOSTING_THREAD_ERROR;
- }
return (jint)OCSTACK_OK;
}