fix: possible race condition (#1639)

This commit is contained in:
Keith Zantow
2023-03-01 15:35:01 -05:00
committed by GitHub
parent e2ebc9769f
commit 5f90d03718
8 changed files with 20 additions and 28 deletions
+1 -3
View File
@@ -347,9 +347,7 @@ func requireFileInfo(_ string, info os.FileInfo, _ error) error {
func indexingProgress(path string) (*progress.Stage, *progress.Manual) {
stage := &progress.Stage{}
prog := &progress.Manual{
Total: -1,
}
prog := progress.NewManual(-1)
bus.Publish(partybus.Event{
Type: event.FileIndexingStarted,