From aa50c30aa2585b9a67c15a8cc0cfd75404915cb0 Mon Sep 17 00:00:00 2001
From: Brian Warner <warner@allmydata.com>
Date: Wed, 14 Jan 2009 16:41:51 -0700
Subject: [PATCH] download: tiny cleanup of history code

---
 src/allmydata/immutable/download.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/allmydata/immutable/download.py b/src/allmydata/immutable/download.py
index 945c8790..6e1593d1 100644
--- a/src/allmydata/immutable/download.py
+++ b/src/allmydata/immutable/download.py
@@ -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
 
-- 
2.45.2