avoid crash when directory doesn't exist
This commit is contained in:
parent
e58d19b533
commit
a52c552f0b
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue