/* check state */
RETVM_IF(state != VC_STATE_INITIALIZED, VC_ERROR_INVALID_STATE, TAG_VCC, "[ERROR] Invalid State: Current state(%d) is not 'Initialized'", state);
- ret = vc_tidl_request_hello_sync();
+ ret = -1;
+ int cnt = 0;
+ while (VC_CONNECTION_RETRY_COUNT > cnt) {
+ ret= vc_tidl_request_hello_sync();
+ if (VC_ERROR_NONE == ret)
+ break;
+ SLOG(LOG_ERROR, TAG_VCC, "[ERROR] Fail to request hello_sync and retry, ret(%d)", ret);
+ usleep(100000);
+ cnt++;
+ }
if (VC_ERROR_NONE != ret) {
SLOG(LOG_ERROR, TAG_VCC, "[ERROR] Fail to request hello_sync, ret(%d)", ret);
return ret;
}
- int cnt = 0;
+ cnt = 0;
while (EINA_TRUE == __vc_connect_daemon(NULL) && VC_CONNECTION_RETRY_COUNT > cnt) {
cnt++;
}