From: Jeesun Kim Date: Tue, 26 May 2015 12:42:46 +0000 (+0900) Subject: fixed random bs in tc X-Git-Tag: accepted/tizen/mobile/20150908.232306~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bcf9e2f670b54146066b11d6bc579181db0ad560;p=platform%2Fcore%2Fpim%2Fcontacts-service.git fixed random bs in tc Change-Id: I3b23653223edba47abee63973969c2d2e09cd177 --- diff --git a/client/ctsvc_client_service.c b/client/ctsvc_client_service.c index 347d589..3a2ef5f 100644 --- a/client/ctsvc_client_service.c +++ b/client/ctsvc_client_service.c @@ -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);