Skip to content
Snippets Groups Projects
Commit 5b8d286d authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Fix idle timeout code.

parent 7b88ccd9
No related branches found
No related tags found
No related merge requests found
...@@ -436,7 +436,7 @@ slapd_daemon_task( ...@@ -436,7 +436,7 @@ slapd_daemon_task(
) )
{ {
int l; int l;
time_t last_idle_check = slap_get_time();
time( &starttime ); time( &starttime );
for ( l = 0; slap_listeners[l] != NULL; l++ ) { for ( l = 0; slap_listeners[l] != NULL; l++ ) {
...@@ -471,8 +471,7 @@ slapd_daemon_task( ...@@ -471,8 +471,7 @@ slapd_daemon_task(
int ebadf = 0; int ebadf = 0;
#define SLAPD_IDLE_CHECK_LIMIT 4 #define SLAPD_IDLE_CHECK_LIMIT 4
time_t last_idle_check = slap_get_time(); time_t now = slap_get_time();
time_t now;
fd_set readfds; fd_set readfds;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment