From 2e4e111764e8b57babb1be6860f183b5129194ee Mon Sep 17 00:00:00 2001 From: gardners Date: Tue, 4 Dec 2012 08:50:00 +1030 Subject: [PATCH] fixed bug that prevented remaining rhizome tests from passing. --- rhizome_fetch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rhizome_fetch.c b/rhizome_fetch.c index f741d788..7d422489 100644 --- a/rhizome_fetch.c +++ b/rhizome_fetch.c @@ -1502,7 +1502,8 @@ void rhizome_fetch_poll(struct sched_ent *alarm) // timeout or socket error, close the socket if (debug & DEBUG_RHIZOME_RX) DEBUGF("Closing due to timeout or error %x (%x %x)", alarm->poll.revents, POLLHUP, POLLERR); - rhizome_fetch_close(slot); + if (slot->state!=RHIZOME_FETCH_FREE) + rhizome_fetch_close(slot); } }