summaryrefslogtreecommitdiff
path: root/Assistant/Threads/TransferScanner.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-10-29 16:49:47 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-10-29 16:49:47 -0400
commit2960a8011484fa3dad1cff55e8e412f4d4b1db84 (patch)
treec36b30274a014f5a7d22dd072a3756a9d4b817cc /Assistant/Threads/TransferScanner.hs
parent0864097c212131b477b41907b3d59dacf6bc4fe9 (diff)
lift alertWhile
Diffstat (limited to 'Assistant/Threads/TransferScanner.hs')
-rw-r--r--Assistant/Threads/TransferScanner.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Assistant/Threads/TransferScanner.hs b/Assistant/Threads/TransferScanner.hs
index 8c46a79fa..3e99b60f5 100644
--- a/Assistant/Threads/TransferScanner.hs
+++ b/Assistant/Threads/TransferScanner.hs
@@ -100,10 +100,10 @@ failedTransferScan r = do
expensiveScan :: [Remote] -> Assistant ()
expensiveScan rs = unless onlyweb $ do
debug ["starting scan of", show visiblers]
- dstatus <- getAssistant daemonStatusHandle
- void $ alertWhile dstatus (scanAlert visiblers) <~> do
+ void $ alertWhile (scanAlert visiblers) $ do
g <- liftAnnex gitRepo
(files, cleanup) <- liftIO $ LsFiles.inRepo [] g
+ dstatus <- getAssistant daemonStatusHandle
forM_ files $ \f -> do
ts <- liftAnnex $
ifAnnexed f (findtransfers dstatus f) (return [])