mirror of
https://github.com/packwiz/packwiz.git
synced 2025-04-19 21:16:30 +02:00
Fix hang when refreshing an index with no files
This commit is contained in:
parent
c1cbc8b867
commit
a6d28faf61
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user