From: Kurt Zeilenga Date: Wed, 7 May 2003 22:22:21 +0000 (+0000) Subject: minor tweak X-Git-Tag: OPENLDAP_REL_ENG_2_2_0ALPHA~161 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e64bb13148ac79fcf07932f3f4b2715eda6d7558;p=openldap minor tweak --- diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index efb0a932fc..147f1fc819 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -1223,12 +1223,12 @@ slapd_daemon_task( time_t tdelta = 1; #endif + now = slap_get_time(); + if( emfile ) { - now = slap_get_time(); connections_timeout_idle( now ); - } - else if ( global_idletimeout > 0 ) { - now = slap_get_time(); + + } else if ( global_idletimeout > 0 ) { if ( difftime( last_idle_check+global_idletimeout/SLAPD_IDLE_CHECK_LIMIT, now ) < 0 ) { connections_timeout_idle( now ); }