avoid spawning file size polling thread when not in -J mode
This commit is contained in:
parent
e97fce35a6
commit
3449c0e8ec
2 changed files with 11 additions and 5 deletions
|
@ -660,10 +660,8 @@ saveState nocommit = doSideAction $ do
|
|||
|
||||
{- Downloads content from any of a list of urls. -}
|
||||
downloadUrl :: Key -> MeterUpdate -> [Url.URLString] -> FilePath -> Annex Bool
|
||||
downloadUrl k p urls file =
|
||||
concurrentMetered (Just p) k $ \p' ->
|
||||
watchFileSize file p' $
|
||||
go =<< annexWebDownloadCommand <$> Annex.getGitConfig
|
||||
downloadUrl k p urls file = concurrentMeteredFile file (Just p) k $
|
||||
go =<< annexWebDownloadCommand <$> Annex.getGitConfig
|
||||
where
|
||||
go Nothing = do
|
||||
a <- ifM commandProgressDisabled
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue