diff options
-rw-r--r-- | Annex/Content.hs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Annex/Content.hs b/Annex/Content.hs index 0b15ce53b..9648083cb 100644 --- a/Annex/Content.hs +++ b/Annex/Content.hs @@ -256,8 +256,9 @@ lockContentUsing locker key a = do maybe noop cleanuplockfile mlockfile liftIO $ dropLock lck #else - unlock mlockfile mlockhandle = do - liftIO $ maybe noop dropLock mlockhandle + unlock mlockfile lck = do + -- Can't delete a locked file on Windows + liftIO $ dropLock lck maybe noop cleanuplockfile mlockfile #endif |