fixed random bs in tc 21/47421/1
authorJeesun Kim <iamjs.kim@samsung.com>
Tue, 26 May 2015 12:42:46 +0000 (21:42 +0900)
committerGukhwan Cho <gh78.cho@samsung.com>
Thu, 3 Sep 2015 08:10:58 +0000 (17:10 +0900)
Change-Id: I3b23653223edba47abee63973969c2d2e09cd177

client/ctsvc_client_service.c

index 347d589..3a2ef5f 100644 (file)
@@ -78,7 +78,8 @@ API int contacts_disconnect(void)
        unsigned int id = ctsvc_client_get_pid();
 
        ret = ctsvc_client_handle_get_p_with_id(id, &contact);
-       RETV_IF(NULL == contact, CONTACTS_ERROR_DB);
+       RETV_IF(NULL == contact, CONTACTS_ERROR_NONE);
+       RETV_IF(CONTACTS_ERROR_NO_DATA == ret, CONTACTS_ERROR_NONE);
        RETVM_IF(CONTACTS_ERROR_NONE != ret, ret, "ctsvc_client_handle_get_p_with_id() Fail(%d)", ret);
 
        ret = ctsvc_client_disconnect(contact);
@@ -123,7 +124,8 @@ API int contacts_disconnect_on_thread(void)
        unsigned int id = ctsvc_client_get_tid();
 
        ret = ctsvc_client_handle_get_p_with_id(id, &contact);
-       RETV_IF(NULL == contact, CONTACTS_ERROR_DB);
+       RETV_IF(NULL == contact, CONTACTS_ERROR_NONE);
+       RETV_IF(CONTACTS_ERROR_NO_DATA == ret, CONTACTS_ERROR_NONE);
        RETVM_IF(CONTACTS_ERROR_NONE != ret, ret, "ctsvc_client_handle_get_p_with_id() Fail(%d)", ret);
 
        ret = ctsvc_client_disconnect_on_thread(contact);