aboutsummaryrefslogtreecommitdiff
path: root/Logs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-08-07 13:31:43 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-08-07 13:31:43 -0400
commit7e2d07484f2ae9912f34e30e8b5614fb86099eed (patch)
tree23606c3d4779317484683daf6d88d05dce6be260 /Logs
parenta66e1f68caeb045dc0c81388076915f5f06bddec (diff)
parent2a9077f4e92b588200eafcda4d485e95998917a2 (diff)
Merge branch 'master' into assistant
Diffstat (limited to 'Logs')
-rw-r--r--Logs/Transfer.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Logs/Transfer.hs b/Logs/Transfer.hs
index b0e21481c..b7074592e 100644
--- a/Logs/Transfer.hs
+++ b/Logs/Transfer.hs
@@ -105,8 +105,8 @@ runTransfer t file a = do
writeFile tfile $ writeTransferInfo info
return fd
cleanup tfile fd = do
- removeFile tfile
- removeFile $ transferLockFile tfile
+ void $ tryIO $ removeFile tfile
+ void $ tryIO $ removeFile $ transferLockFile tfile
closeFd fd
{- If a transfer is still running, returns its TransferInfo. -}