RSA sync with private
[platform/core/messaging/msg-service.git] / utils / MsgSqliteWrapper.cpp
index dc5461d..7b7d652 100755 (executable)
@@ -50,8 +50,10 @@ MsgDbHandler::MsgDbHandler()
 
 MsgDbHandler::~MsgDbHandler()
 {
-       if(handle != NULL)
-               disconnect();
+       if(handle != NULL) {
+               if (disconnect() != MSG_SUCCESS)
+                       MSG_DEBUG("disconnect is failed!!");
+       }
 
        if(stmt != NULL)
                finalizeQuery();