From 0475bd8e27ae83070342cfa95a997662d9bcc861 Mon Sep 17 00:00:00 2001
From: Brian Warner <warner@lothar.com>
Date: Thu, 9 Sep 2010 21:30:38 -0700
Subject: [PATCH] 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.

---
 src/allmydata/immutable/downloader/finder.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/allmydata/immutable/downloader/finder.py b/src/allmydata/immutable/downloader/finder.py
index fa6204c7..4816ccdf 100644
--- a/src/allmydata/immutable/downloader/finder.py
+++ b/src/allmydata/immutable/downloader/finder.py
@@ -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
-- 
2.45.2