aboutsummaryrefslogtreecommitdiff
path: root/Logs
diff options
context:
space:
mode:
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. -}