Extra check for end of iterator.

This commit is contained in:
Sears Russell 2006-04-04 22:32:48 +00:00
parent 6898b2a2a6
commit 8e0bd2ecd2

View file

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