]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
immutable download: have the finder inform its share consumer "no more shares" in...
authorBrian Warner <warner@lothar.com>
Fri, 10 Sep 2010 04:30:38 +0000 (21:30 -0700)
committerBrian Warner <warner@lothar.com>
Fri, 10 Sep 2010 04:30:38 +0000 (21:30 -0700)
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.

src/allmydata/immutable/downloader/finder.py

index fa6204c7d71663bdcac109d17a40b3b0075a0848..4816ccdf79b3c8b797d55c20da4ac2d7b1b2415b 100644 (file)
@@ -127,7 +127,7 @@ class ShareFinder:
         # 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