mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-01 20:49:35 -05:00
Check for active requests before trying to receive a message
This commit is contained in:
parent
84e87f3912
commit
621099e15d
1 changed files with 4 additions and 0 deletions
|
|
@ -39,6 +39,10 @@ LDAPMessageQueue::~LDAPMessageQueue(){
|
|||
LDAPMsg *LDAPMessageQueue::getNext(){
|
||||
DEBUG(LDAP_DEBUG_TRACE,"LDAPMessageQueue::getNext()" << endl);
|
||||
|
||||
if ( m_activeReq.empty() ) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
LDAPRequest *req=m_activeReq.top();
|
||||
LDAPMsg *ret=0;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue