summaryrefslogtreecommitdiff
path: root/gdbus
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2009-10-27 18:24:11 -0200
committerMarcel Holtmann <marcel@holtmann.org>2009-10-29 22:50:08 +0900
commitbe7c2d6f34d1d3a353d149f25aedb2faba401f28 (patch)
tree3e22c3d3d662a0805537fc33c3078eff6441dfb3 /gdbus
parent56a3dd96bae7bc308edb5c2d9405154ca4fddf4b (diff)
downloadconnman-be7c2d6f34d1d3a353d149f25aedb2faba401f28.tar.gz
connman-be7c2d6f34d1d3a353d149f25aedb2faba401f28.tar.bz2
connman-be7c2d6f34d1d3a353d149f25aedb2faba401f28.zip
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')
-rw-r--r--gdbus/mainloop.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdbus/mainloop.c b/gdbus/mainloop.c
index a06ed220..bd775f8b 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;
}