fix http->mdp rhizome fetch failover regression.

This commit is contained in:
gardners 2013-08-25 16:38:24 +09:30
parent 9b09021605
commit 53ce40a053

View File

@ -1531,8 +1531,8 @@ void rhizome_fetch_poll(struct sched_ent *alarm)
// timeout or socket error, close the socket
if (config.debug.rhizome_rx)
DEBUGF("Closing due to timeout or error %x (%x %x)", alarm->poll.revents, POLLHUP, POLLERR);
if (slot->state!=RHIZOME_FETCH_FREE)
rhizome_fetch_close(slot);
if (slot->state!=RHIZOME_FETCH_FREE&&slot->state!=RHIZOME_FETCH_RXFILEMDP)
rhizome_fetch_switch_to_mdp(slot);
}
}
}