From d93952ad4b8e6ae7e212037ed1b37940560e814c Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Sun, 20 Aug 2006 22:31:34 +0000 Subject: Fix processing of the timeout list in GMainContext --- hcid/dbus-security.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'hcid/dbus-security.c') diff --git a/hcid/dbus-security.c b/hcid/dbus-security.c index c9c6763f..5bc8adde 100644 --- a/hcid/dbus-security.c +++ b/hcid/dbus-security.c @@ -40,7 +40,7 @@ #include "hcid.h" #define REQUEST_TIMEOUT (30 * 1000) /* 30 seconds */ -#define AGENT_TIMEOUT (1 * 10 * 1000) /* 3 minutes */ +#define AGENT_TIMEOUT (3 * 60 * 1000) /* 3 minutes */ static struct passkey_agent *default_agent = NULL; @@ -255,10 +255,7 @@ static DBusHandlerResult register_agent(DBusConnection *conn, if (!slist_find(adapter->passkey_agents, &ref, (cmp_func_t)agent_cmp)) name_listener_add(conn, ref.name, (name_cb_t)agent_exited, adapter); - /* Because of bugs in glib-ectonomy.c this doesn't work yet */ -#if 0 agent->timeout = g_timeout_add(AGENT_TIMEOUT, (GSourceFunc)agent_timeout, agent); -#endif adapter->passkey_agents = slist_append(adapter->passkey_agents, agent); -- cgit