From 8e0bd2ecd2b14e446a70f27b38f4cc09bfc09562 Mon Sep 17 00:00:00 2001 From: Sears Russell Date: Tue, 4 Apr 2006 22:32:48 +0000 Subject: [PATCH] Extra check for end of iterator. --- src/lladd/fifo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lladd/fifo.c b/src/lladd/fifo.c index 30fe425..4f38207 100644 --- a/src/lladd/fifo.c +++ b/src/lladd/fifo.c @@ -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; }