summaryrefslogtreecommitdiff
path: root/Logs/Transfer.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Logs/Transfer.hs')
-rw-r--r--Logs/Transfer.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/Logs/Transfer.hs b/Logs/Transfer.hs
index ef1db879c..471b886b3 100644
--- a/Logs/Transfer.hs
+++ b/Logs/Transfer.hs
@@ -140,9 +140,10 @@ checkTransfer t = do
let lck = transferLockFile tfile
v <- getLockStatus lck
case v of
- Just pid -> catchDefaultIO Nothing $
+ StatusLockedBy pid -> catchDefaultIO Nothing $
readTransferInfoFile (Just pid) tfile
- Nothing -> do
+ StatusNoLockFile -> return Nothing
+ StatusUnLocked -> do
-- Take a non-blocking lock while deleting
-- the stale lock file.
r <- tryLockExclusive Nothing lck