From a6d28faf61dd2585e3bc7c0c715760fba27bd653 Mon Sep 17 00:00:00 2001 From: comp500 Date: Sun, 22 Dec 2019 23:42:04 +0000 Subject: [PATCH] Fix hang when refreshing an index with no files --- core/index.go | 1 + 1 file changed, 1 insertion(+) diff --git a/core/index.go b/core/index.go index 4be2360..83fa2f7 100644 --- a/core/index.go +++ b/core/index.go @@ -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