Fix message handling for autostart.

Current implementation of libdbus Request name is blocking, consequently
the first incomming message that triggered the service autostart is not
being processed properly.
This commit is contained in:
Claudio Takahasi 2009-10-27 18:24:11 -02:00 committed by Marcel Holtmann
parent 8f499841cf
commit dab8e45d2e
1 changed files with 3 additions and 0 deletions

View File

@ -272,6 +272,9 @@ DBusConnection *g_dbus_setup_bus(DBusBusType type, const char *name,
setup_dbus_with_main_loop(conn);
if (dbus_connection_get_dispatch_status(conn) == DBUS_DISPATCH_DATA_REMAINS)
g_timeout_add(DISPATCH_TIMEOUT, message_dispatch_cb, conn);
return conn;
}