Fix stopCaching logic in the RE client.
authorKIM JungYong <jyong2.kim@samsung.com>
Thu, 23 Mar 2017 08:59:45 +0000 (17:59 +0900)
committerUze Choi <uzchoi@samsung.com>
Fri, 24 Mar 2017 08:41:10 +0000 (08:41 +0000)
commitd94741fc2e17ba77773d38b2d2b4eadb30c49511
treecedb1c34a8d68fd59b4b8da0070e79b75fc51193
parent4248e10cd6b28bb08eda7728ef6b92aa8705c6f5
Fix stopCaching logic in the RE client.

When caught exception at calling stopCaching(),
can not start caching again, reason that IsCaching boolean does not changed in RE client.

In this patch,
exception handling and disable IsCaching flag.

Change-Id: I80f4629d21ea16799f945c90d56f70f81bc38e90
Signed-off-by: KIM JungYong <jyong2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/18125
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
service/resource-encapsulation/src/resourceCache/src/ResourceCacheManager.cpp
service/resource-encapsulation/src/resourceClient/RCSRemoteResourceObject.cpp