Don't recursive lock connections_mutex in idle timeout routine

This commit is contained in:
Kurt Zeilenga 2000-09-22 18:18:39 +00:00
parent de61693cdb
commit f164e69baa

View file

@ -169,8 +169,6 @@ int connections_timeout_idle(time_t now)
int connindex;
Connection* c;
ldap_pvt_thread_mutex_lock( &connections_mutex );
for( c = connection_first( &connindex );
c != NULL;
c = connection_next( c, &connindex ) )
@ -184,8 +182,6 @@ int connections_timeout_idle(time_t now)
}
connection_done( c );
ldap_pvt_thread_mutex_unlock( &connections_mutex );
return i;
}