summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--P2P/Annex.hs2
-rw-r--r--doc/todo/tor.mdwn3
2 files changed, 3 insertions, 2 deletions
diff --git a/P2P/Annex.hs b/P2P/Annex.hs
index 1ef54de1d..7e07038d3 100644
--- a/P2P/Annex.hs
+++ b/P2P/Annex.hs
@@ -125,4 +125,4 @@ runLocal runmode runner a = case a of
hSeek h AbsoluteSeek o
L.hPut h b
sz <- getFileSize dest
- return (toInteger sz == l)
+ return (toInteger sz == l + o)
diff --git a/doc/todo/tor.mdwn b/doc/todo/tor.mdwn
index af4fa1993..fece15beb 100644
--- a/doc/todo/tor.mdwn
+++ b/doc/todo/tor.mdwn
@@ -6,8 +6,9 @@ Current todo list:
* copy --to peer seems to make the remotedaemon buffer the content in
memory, more than I'd expect.
+* There are no error messages when things fail. Need to convert P2P runner
+ from Maybe to Either String.
* update progress logs in remotedaemon send/receive
-* Resuming an interrupted download fails at the end.
* Think about locking some more. What happens if the connection to the peer
is dropped while we think we're locking content there from being dropped?
* merge to master