DBusMessage* result_msg = NULL;
int result = 0;
- result_msg = dbus_connection_send_with_reply_and_block(g_conn_sender, msg, 500, &err);
+ result_msg = dbus_connection_send_with_reply_and_block(g_conn_sender, msg, -1, &err);
if (dbus_error_is_set(&err)) {
SLOG(LOG_DEBUG, TAG_VCC, "[ERROR] Dbus Error (%s)", err.message);
DBusMessage* result_msg = NULL;
int result = 0;
- result_msg = dbus_connection_send_with_reply_and_block(g_m_conn_sender, msg, 500, &err);
+ result_msg = dbus_connection_send_with_reply_and_block(g_m_conn_sender, msg, -1, &err);
if (dbus_error_is_set(&err)) {
SLOG(LOG_DEBUG, TAG_VCM, "[ERROR] Dbus Error (%s)", err.message);
DBusMessage* result_msg = NULL;
int result = 0;
- result_msg = dbus_connection_send_with_reply_and_block(g_w_conn_sender, msg, 500, &err);
+ result_msg = dbus_connection_send_with_reply_and_block(g_w_conn_sender, msg, -1, &err);
if (dbus_error_is_set(&err)) {
if (!strncmp(err.name, DBUS_ERROR_SERVICE_UNKNOWN, strlen(err.name)))
return VCD_ERROR_OPERATION_FAILED;
}
+ /* Flush messages which are received before fd event handler registration */
+ while (DBUS_DISPATCH_DATA_REMAINS == dbus_connection_get_dispatch_status(g_conn_listener)) {
+ listener_event_callback(NULL, NULL);
+ }
+
/* add a rule for getting signal */
char rule[128];
snprintf(rule, 128, "type='signal',interface='%s'", VC_SERVER_SERVICE_INTERFACE);