fixes #1191
Patch by Brian. This patch description was actually written by Zooko, but I forged Brian's name on the "author" field so that he would get credit for this patch in revision control history.
# we've run out of servers (so we can't send any more requests), and
# we have nothing in flight. No further progress can be made. They
# are destined to remain hungry.
- self.share_consumer.no_more_shares()
+ eventually(self.share_consumer.no_more_shares)
def send_request(self, server):
peerid, rref = server