]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Share: hush log entries in the main loop() after the fetch has been completed.
authorBrian Warner <warner@lothar.com>
Fri, 6 Aug 2010 07:07:14 +0000 (00:07 -0700)
committerBrian Warner <warner@lothar.com>
Mon, 9 Aug 2010 20:43:59 +0000 (13:43 -0700)
src/allmydata/immutable/downloader/share.py

index 2cb54deabb8118a66425ea3d99ef8e27c235fcf6..f7ed4e86866ddd725bfccf3e26df5b28dc65c8c0 100644 (file)
@@ -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.