summaryrefslogtreecommitdiffstats
path: root/src/sbus/sssd_dbus_connection.c
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2010-05-19 17:49:45 +0200
committerStephen Gallagher <sgallagh@redhat.com>2010-05-20 14:09:56 -0400
commite091bbd28c35fe8f916a15b4b0548f1b5419aab7 (patch)
treef470003921f87acd019d2c9488cf79ac1753e3e3 /src/sbus/sssd_dbus_connection.c
parent88f059faa6742fa84750127fcc9307cd319c6f7d (diff)
downloadsssd-e091bbd28c35fe8f916a15b4b0548f1b5419aab7.tar.gz
sssd-e091bbd28c35fe8f916a15b4b0548f1b5419aab7.tar.xz
sssd-e091bbd28c35fe8f916a15b4b0548f1b5419aab7.zip
Defer sbus_dispatch() for 30ms during reconnect
Diffstat (limited to 'src/sbus/sssd_dbus_connection.c')
-rw-r--r--src/sbus/sssd_dbus_connection.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sbus/sssd_dbus_connection.c b/src/sbus/sssd_dbus_connection.c
index d2918fbc6..9faf3d9f7 100644
--- a/src/sbus/sssd_dbus_connection.c
+++ b/src/sbus/sssd_dbus_connection.c
@@ -58,7 +58,8 @@ static void sbus_dispatch(struct tevent_context *ev,
if (conn->retries > 0) {
DEBUG(6, ("SBUS is reconnecting. Deferring.\n"));
- /* Currently trying to reconnect, defer dispatch */
+ /* Currently trying to reconnect, defer dispatch for 30ms */
+ tv = tevent_timeval_current_ofs(0, 30);
new_event = tevent_add_timer(ev, conn, tv, sbus_dispatch, conn);
if (new_event == NULL) {
DEBUG(0,("Could not defer dispatch!\n"));