aboutsummaryrefslogtreecommitdiff
path: root/Command/TransferInfo.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-09-24 13:16:50 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-09-24 13:18:16 -0400
commit3887432c54e1da6d66d364bb7f153a3c6a1cace8 (patch)
tree9941b1cd365ffadd13bdb84d33e4b07e4bb3f1e4 /Command/TransferInfo.hs
parent364b40e5fcad5e6221df75b49953c838407a4546 (diff)
fixes for transfer resume
Fix resuming of downloads, which do not have a transfer info file to read. When checking upload progress, use the MVar, rather than re-reading the info file. Catch exceptions in the transfer action. Required a tryAnnex.
Diffstat (limited to 'Command/TransferInfo.hs')
-rw-r--r--Command/TransferInfo.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Command/TransferInfo.hs b/Command/TransferInfo.hs
index f64ffa765..800b72169 100644
--- a/Command/TransferInfo.hs
+++ b/Command/TransferInfo.hs
@@ -47,7 +47,7 @@ start (k:[]) = do
, transferKey = key
}
info <- liftIO $ startTransferInfo file
- (update, tfile) <- mkProgressUpdater t info
+ (update, tfile, _) <- mkProgressUpdater t info
liftIO $ mapM_ void
[ tryIO $ forever $ do
bytes <- readish <$> getLine