Extra check for end of iterator.
This commit is contained in:
parent
6898b2a2a6
commit
8e0bd2ecd2
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ int lladdFifoPool_iterator_next(int xid, void * it) {
|
|||
pthread_cond_wait(&(impl->readOK), &(impl->mutex));
|
||||
}
|
||||
|
||||
if(impl->eof) {
|
||||
if(impl->eof && impl->last == NULL) {
|
||||
pthread_mutex_unlock(&(impl->mutex));
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue