mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-29 02:59:34 -05:00
Revert prev commit
This commit is contained in:
parent
43c1f42461
commit
f54bb377df
1 changed files with 5 additions and 4 deletions
|
|
@ -1132,13 +1132,10 @@ operations_error:
|
|||
/* c_mutex is locked */
|
||||
connection_closing( conn,
|
||||
tag == LDAP_REQ_UNBIND ? NULL : "operations error" );
|
||||
connection_close( conn );
|
||||
break;
|
||||
default:
|
||||
connection_resched( conn );
|
||||
break;
|
||||
}
|
||||
|
||||
connection_resched( conn );
|
||||
ldap_pvt_thread_mutex_unlock( &conn->c_mutex );
|
||||
slap_op_free( op, ctx );
|
||||
return NULL;
|
||||
|
|
@ -1636,6 +1633,10 @@ connection_resched( Connection *conn )
|
|||
return 0;
|
||||
|
||||
if( conn->c_conn_state == SLAP_C_CLOSING ) {
|
||||
Debug( LDAP_DEBUG_CONNS, "connection_resched: "
|
||||
"attempting closing conn=%lu sd=%d\n",
|
||||
conn->c_connid, conn->c_sd, 0 );
|
||||
connection_close( conn );
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue