From be7c2d6f34d1d3a353d149f25aedb2faba401f28 Mon Sep 17 00:00:00 2001 From: Claudio Takahasi Date: Tue, 27 Oct 2009 18:24:11 -0200 Subject: [PATCH] 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. --- gdbus/mainloop.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gdbus/mainloop.c b/gdbus/mainloop.c index a06ed22..bd775f8 100644 --- a/gdbus/mainloop.c +++ b/gdbus/mainloop.c @@ -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; } -- 2.7.4