/* Send hello */
while (0 != ret) {
- if (retry_count == 10) {
+ if (retry_count == 100) {
MA_SLOGE("[ERROR] Fail to request hello !!"); //LCOV_EXCL_LINE
return;
}
MA_SLOGD("Success to request hello. retry count(%d)", retry_count);
break;
} else {
+ usleep(300000);
retry_count++;
}
}
ret = -1;
retry_count = 0;
+
while (0 != ret) {
if (retry_count == 10) {
MA_SLOGE("[ERROR] Fail to connect daemon !!"); //LCOV_EXCL_LINE
MA_SLOGD("Success to connect daemon. retry count(%d)", retry_count);
break;
} else {
+ usleep(10000);
retry_count++;
}
}
ma_client_set_client_state(g_ma, MA_STATE_INITIALIZED);
__ma_notify_state_changed((void*)g_ma);
-
- if (0 != ma_prepare()) {
- MA_SLOGE("[ERROR] Fail to prepare");
- }
}
MA_SLOGE("[ERROR] Error reason(%d), msg(%s)", reason, msg);
ma_client_set_error(g_ma, reason);
__ma_notify_error((void*)g_ma);
+ if (MA_ERROR_SERVICE_RESET == reason) {
+ if (0 != ma_prepare()) {
+ MA_SLOGE("[ERROR] Fail to prepare");
+ }
+ }
+
return MA_ERROR_NONE;
}
result_msg = dbus_connection_send_with_reply_and_block(g_conn_sender, msg, -1, &err);
if (dbus_error_is_set(&err)) {
- MA_SLOGD("[ERROR] Dbus Error (%s)", err.message); //LCOV_EXCL_LINE
+ MA_SLOGE("[ERROR] Dbus Error (%s)", err.message); //LCOV_EXCL_LINE
dbus_error_free(&err);
}