]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
download: tiny cleanup of history code
authorBrian Warner <warner@allmydata.com>
Wed, 14 Jan 2009 23:41:51 +0000 (16:41 -0700)
committerBrian Warner <warner@allmydata.com>
Wed, 14 Jan 2009 23:41:51 +0000 (16:41 -0700)
src/allmydata/immutable/download.py

index 945c8790e59389cf5bd86408f158299b99af2a22..6e1593d14ae683e0eedbb738c191bd119dddd3f8 100644 (file)
@@ -1190,9 +1190,8 @@ class Downloader(service.MultiService):
             monitor=Monitor()
         dl = CiphertextDownloader(self.parent, u.get_verify_cap(), target, monitor=monitor)
         self._all_downloads[dl] = None
-        s = dl.get_download_status()
         if history:
-            history.add_download(s)
+            history.add_download(dl.get_download_status())
         d = dl.start()
         return d