summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeeshan Ali <zeenix@collabora.co.uk>2018-09-17 22:52:57 +0200
committerZeeshan Ali <zeenix@collabora.co.uk>2018-10-13 18:40:57 +0200
commitf37992ec54720f1bcdab86b37edbd6fde3a31dba (patch)
tree97419b069baf23c572f1f7821fb9f705562175e2
parent2e4057ae8cb9d8190fbf36c99e64c23d67a5c4c6 (diff)
service: Increase agent timeout from 100ms to 20s
This should give sufficient amount of time for agents to register themselves before any dbus calls can timeoout (30s by default). Fixes #84.
-rw-r--r--src/gclue-service-manager.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gclue-service-manager.c b/src/gclue-service-manager.c
index 2ef6d9a..904f5f1 100644
--- a/src/gclue-service-manager.c
+++ b/src/gclue-service-manager.c
@@ -31,8 +31,10 @@
#include "gclue-locator.h"
#include "gclue-config.h"
-#define AGENT_WAIT_TIMEOUT 100 /* milliseconds */
-#define AGENT_WAIT_TIMEOUT_USEC 100000 /* microseconds */
+/* 20 seconds as milliseconds */
+#define AGENT_WAIT_TIMEOUT 20000
+/* 20 seconds as microseconds */
+#define AGENT_WAIT_TIMEOUT_USEC (20 * G_USEC_PER_SEC)
static void
gclue_service_manager_manager_iface_init (GClueDBusManagerIface *iface);