[SECIOTSW-530] Catch exceptions of type 'runtime::Exception' in '~Client()' 74/125874/1
authorSungjun, Lee <sjun221.lee@samsung.com>
Wed, 19 Apr 2017 07:38:24 +0000 (16:38 +0900)
committerSungjun, Lee <sjun221.lee@samsung.com>
Wed, 19 Apr 2017 07:38:24 +0000 (16:38 +0900)
Signed-off-by: Sungjun, Lee <sjun221.lee@samsung.com>
Change-Id: I8f52e3386e5a80675da0c83d682c9544f6c4a321
[WGID: 207329] '~Client()' doesn't catch exceptions of type 'runtime::Exception'

src/rmi/client.cpp

index 4d5f462a988cc90b83b739a94c691cba5c52b47b..d6e7bfa4d4d8eb9376dea747f0871bac6ea12b66 100644 (file)
@@ -24,7 +24,9 @@ Client::Client(const std::string& path) :
 
 Client::~Client()
 {
-       disconnect();
+       try {
+               disconnect();
+       } catch (runtime::Exception& e) {}
 }
 
 void Client::connect()