From ed821d1504330c65b179b43b8f2c6ee525885c72 Mon Sep 17 00:00:00 2001
From: Brian Warner <warner@lothar.com>
Date: Fri, 6 Aug 2010 00:07:14 -0700
Subject: [PATCH] Share: hush log entries in the main loop() after the fetch
 has been completed.

---
 src/allmydata/immutable/downloader/share.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/allmydata/immutable/downloader/share.py b/src/allmydata/immutable/downloader/share.py
index 2cb54dea..f7ed4e86 100644
--- a/src/allmydata/immutable/downloader/share.py
+++ b/src/allmydata/immutable/downloader/share.py
@@ -185,6 +185,8 @@ class Share:
         return None, []
 
     def loop(self):
+        if not self._alive:
+            return
         try:
             # if any exceptions occur here, kill the download
             log.msg("%s.loop, reqs=[%s], pending=%s, received=%s,"
@@ -238,8 +240,6 @@ class Share:
         #  new segments added to self._requested_blocks
         #  new data received from servers (responses to our read() calls)
         #  impatience timer fires (server appears slow)
-        if not self._alive:
-            return
 
         # First, consume all of the information that we currently have, for
         # all the segments people currently want.
-- 
2.45.2