diff options
author | Sumit Bose <sbose@redhat.com> | 2010-05-19 17:49:45 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-05-20 14:09:56 -0400 |
commit | e091bbd28c35fe8f916a15b4b0548f1b5419aab7 (patch) | |
tree | f470003921f87acd019d2c9488cf79ac1753e3e3 /src/sbus/sssd_dbus_connection.c | |
parent | 88f059faa6742fa84750127fcc9307cd319c6f7d (diff) | |
download | sssd-e091bbd28c35fe8f916a15b4b0548f1b5419aab7.tar.gz sssd-e091bbd28c35fe8f916a15b4b0548f1b5419aab7.tar.bz2 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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sbus/sssd_dbus_connection.c b/src/sbus/sssd_dbus_connection.c index d2918fbc..9faf3d9f 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")); |