only wait if no entry was returned

This commit is contained in:
Pierangelo Masarati 2006-04-04 17:41:13 +00:00
parent 3bfe4a7f77
commit 2e9f2995ec

View File

@ -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;
}
}