diff options
author | Joey Hess <joeyh@joeyh.name> | 2016-12-07 15:36:39 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-12-07 15:36:39 -0400 |
commit | 5c8851678fef29be0b3dcf0451107b589b188264 (patch) | |
tree | 1e3046ddb61246232a278b6a8653fb8c33b93212 | |
parent | d467f482d43ed0e9a8068e6df3bff1acaffb087f (diff) |
fix math error that caused resumes to always fail
-rw-r--r-- | P2P/Annex.hs | 2 | ||||
-rw-r--r-- | doc/todo/tor.mdwn | 3 |
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 |