immutable download: have the finder inform its share consumer "no more shares" in a subsequent tick, thus avoiding accidentally telling it "no more shares" now and then telling it "here's another share" in a subsequent tick

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.
This commit is contained in:
Brian Warner 2010-09-09 21:30:38 -07:00
parent 56a3258ff7
commit 0475bd8e27
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ class ShareFinder:
# we've run out of servers (so we can't send any more requests), and # 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 # we have nothing in flight. No further progress can be made. They
# are destined to remain hungry. # are destined to remain hungry.
self.share_consumer.no_more_shares() eventually(self.share_consumer.no_more_shares)
def send_request(self, server): def send_request(self, server):
peerid, rref = server peerid, rref = server