avoid crash when directory doesn't exist

This commit is contained in:
Joey Hess 2012-08-24 13:59:24 -04:00
parent e58d19b533
commit a52c552f0b

View file

@ -55,8 +55,9 @@ transferScannerThread st dstatus scanremotes transferqueue = do
- are first removed.
-}
startupScan = do
removeDirectoryRecursive
=<< runThreadState st (fromRepo transferScannedDir)
void $ tryIO $
removeDirectoryRecursive
=<< runThreadState st (fromRepo transferScannedDir)
addScanRemotes scanremotes True
=<< knownRemotes <$> getDaemonStatus dstatus