Don't decrement descriptor count until we have checked connection is not UDP

This commit is contained in:
Luke Howard 2005-08-08 03:44:17 +00:00
parent 0dd503a339
commit 17ffdc07b6

View file

@ -1758,8 +1758,6 @@ slapd_daemon_task(
if ( !SLAP_EVENT_IS_READ( slap_listeners[l]->sl_sd ))
continue;
ns--;
rc = slapd_handle_listener(slap_listeners[l]);
#ifdef LDAP_CONNECTIONLESS
@ -1767,6 +1765,8 @@ slapd_daemon_task(
if ( rc ) continue;
#endif
ns--;
/* Don't need to look at this in the data loops */
SLAP_EVENT_CLR_READ( slap_listeners[l]->sl_sd );
SLAP_EVENT_CLR_WRITE( slap_listeners[l]->sl_sd );