mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
only wait if no entry was returned
This commit is contained in:
parent
3bfe4a7f77
commit
2e9f2995ec
@ -474,7 +474,10 @@ really_bad:;
|
||||
}
|
||||
op->o_private = savepriv;
|
||||
|
||||
/* don't wait any longer... */
|
||||
gotit = 1;
|
||||
tv.tv_sec = 0;
|
||||
tv.tv_usec = 0;
|
||||
|
||||
#if 0
|
||||
/*
|
||||
@ -753,13 +756,11 @@ really_bad:;
|
||||
}
|
||||
}
|
||||
|
||||
/* if no entry was found during this loop,
|
||||
* set a minimal timeout */
|
||||
if ( gotit == 0 ) {
|
||||
LDAP_BACK_TV_SET( &tv );
|
||||
ldap_pvt_thread_yield();
|
||||
|
||||
} else {
|
||||
tv.tv_sec = 0;
|
||||
tv.tv_usec = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user