} else if ( !w ) {
Debug( LDAP_DEBUG_CONNS,
"daemon: hangup on %d\n", fd, 0, 0 );
+ if ( SLAP_SOCK_IS_ACTIVE( fd )) {
#ifdef HAVE_EPOLL
- /* Don't keep reporting the hangup
- */
- SLAP_EPOLL_SOCK_SET( fd, EPOLLET );
+ /* Don't keep reporting the hangup
+ */
+ SLAP_EPOLL_SOCK_SET( fd, EPOLLET );
#endif
- connection_hangup( fd );
+ connection_hangup( fd );
+ }
}
}
}