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:
parent
56a3258ff7
commit
0475bd8e27
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue