Fix hang when refreshing an index with no files

This commit is contained in:
comp500 2019-12-22 23:42:04 +00:00
parent c1cbc8b867
commit a6d28faf61

View File

@ -241,6 +241,7 @@ func (in *Index) Refresh() error {
progress.Increment(time.Since(start))
}
// Close bar
progress.SetTotal(int64(len(fileList)), true) // If len = 0, we have to manually set complete to true
progressContainer.Wait()
// Check all the files exist, remove them if they don't