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.
|
- are first removed.
|
||||||
-}
|
-}
|
||||||
startupScan = do
|
startupScan = do
|
||||||
removeDirectoryRecursive
|
void $ tryIO $
|
||||||
=<< runThreadState st (fromRepo transferScannedDir)
|
removeDirectoryRecursive
|
||||||
|
=<< runThreadState st (fromRepo transferScannedDir)
|
||||||
addScanRemotes scanremotes True
|
addScanRemotes scanremotes True
|
||||||
=<< knownRemotes <$> getDaemonStatus dstatus
|
=<< knownRemotes <$> getDaemonStatus dstatus
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue