When the execution of scene with empty scene member,
Execute callback was not call to app.
In this patch, Error handle is added for execution of scene with empty scene member.
Change-Id: I001a3183d79ea3c54822eebb28967b7c47c80637
Signed-off-by: jyong2.kim <jyong2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/5247
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
auto foundSceneValue
= std::find(sceneValues.begin(), sceneValues.end(), sceneName);
- if (foundSceneValue == sceneValues.end() && executeCB)
+ if (foundSceneValue == sceneValues.end() && executeCB && !m_sceneMembers.size())
{
std::thread(executeCB, SCENE_CLIENT_BADREQUEST).detach();
return;