gdbus: Replace g_timeout_add with g_idle_add

Passing 0 as timeout to g_timeout_add should equivalent to g_idle_add.
This commit is contained in:
Luiz Augusto von Dentz 2014-02-18 22:16:56 +02:00 committed by Marcel Holtmann
parent 29401d8587
commit 76a7f9014d
1 changed files with 1 additions and 4 deletions

View File

@ -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)