diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2009-10-27 18:24:11 -0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2009-10-29 15:40:08 +0200 |
commit | 45806a9b07eb6bc83cf9ccfd87288e021c702730 (patch) | |
tree | 4fcf43862af02d7cb9bcdf0303b5310ad0f698b9 /gdbus/mainloop.c | |
parent | 83003660808c30390f21c569a5ba7dbdd8344a41 (diff) | |
download | bluez-45806a9b07eb6bc83cf9ccfd87288e021c702730.tar.gz |
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.
Diffstat (limited to 'gdbus/mainloop.c')
-rw-r--r-- | gdbus/mainloop.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdbus/mainloop.c b/gdbus/mainloop.c index a06ed2206..bd775f8bb 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; } |