diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-02-18 22:16:56 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-02-18 23:13:53 -0800 |
commit | 76a7f9014d4d59228a55d2d885e7002d8b36b76d (patch) | |
tree | 7ab2bf539951360c62a1f2ab32e8d6d35360b6a6 /gdbus/mainloop.c | |
parent | 29401d8587c23d155c2e64e9af0c83ce96e7605f (diff) | |
download | ofono-76a7f9014d4d59228a55d2d885e7002d8b36b76d.tar.bz2 |
gdbus: Replace g_timeout_add with g_idle_add
Passing 0 as timeout to g_timeout_add should equivalent to g_idle_add.
Diffstat (limited to 'gdbus/mainloop.c')
-rw-r--r-- | gdbus/mainloop.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gdbus/mainloop.c b/gdbus/mainloop.c index ec52554b..435fb93b 100644 --- a/gdbus/mainloop.c +++ b/gdbus/mainloop.c @@ -30,8 +30,6 @@ #include "gdbus.h" -#define DISPATCH_TIMEOUT 0 - #define info(fmt...) #define error(fmt...) #define debug(fmt...) @@ -82,8 +80,7 @@ static inline void queue_dispatch(DBusConnection *conn, DBusDispatchStatus status) { if (status == DBUS_DISPATCH_DATA_REMAINS) - g_timeout_add(DISPATCH_TIMEOUT, message_dispatch, - dbus_connection_ref(conn)); + g_idle_add(message_dispatch, dbus_connection_ref(conn)); } static gboolean watch_func(GIOChannel *chan, GIOCondition cond, gpointer data) |