mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
Check for active requests before trying to receive a message
This commit is contained in:
parent
84e87f3912
commit
621099e15d
@ -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 New Issue
Block a user