diff options
author | 2014-03-05 17:44:14 -0400 | |
---|---|---|
committer | 2014-03-05 17:44:14 -0400 | |
commit | 1db1469905cd08da2b4a2f5e310437ff5233f286 (patch) | |
tree | dce09d0ef76f95819bfb8f3d2640c4121475c5fe /Assistant/Threads/UpgradeWatcher.hs | |
parent | f86866c6130ad7b8eb1433c976e4c94b1f17e30d (diff) |
annex.startupscan can be set to false to disable the assistant's startup scan.
Diffstat (limited to 'Assistant/Threads/UpgradeWatcher.hs')
-rw-r--r-- | Assistant/Threads/UpgradeWatcher.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Assistant/Threads/UpgradeWatcher.hs b/Assistant/Threads/UpgradeWatcher.hs index 80f2040a0..ffad09d3d 100644 --- a/Assistant/Threads/UpgradeWatcher.hs +++ b/Assistant/Threads/UpgradeWatcher.hs @@ -50,8 +50,9 @@ upgradeWatcherThread urlrenderer = namedThread "UpgradeWatcher" $ do let dir = parentDir flagfile let depth = length (splitPath dir) + 1 let nosubdirs f = length (splitPath f) == depth - void $ liftIO $ watchDir dir nosubdirs hooks (startup mvar) + void $ liftIO $ watchDir dir nosubdirs False hooks (startup mvar) -- Ignore bogus events generated during the startup scan. + -- We ask the watcher to not generate them, but just to be safe.. startup mvar scanner = do r <- scanner void $ swapMVar mvar Started |