ignore failure to clean up stale transfer lock file
Perhaps due to permissions problem, or perhaps a race with another process also cleaning up.
This commit is contained in:
parent
9de5cd2966
commit
87f28bb2ea
1 changed files with 9 additions and 7 deletions
|
@ -145,7 +145,9 @@ checkTransfer t = do
|
|||
StatusNoLockFile -> return Nothing
|
||||
StatusUnLocked -> do
|
||||
-- Take a non-blocking lock while deleting
|
||||
-- the stale lock file.
|
||||
-- the stale lock file. Ignore failure
|
||||
-- due to permissions problems, races, etc.
|
||||
void $ tryIO $ do
|
||||
r <- tryLockExclusive Nothing lck
|
||||
case r of
|
||||
Just lockhandle -> do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue