Browse Source

Fix the thing

feature/create-install-pkgs
Tovi Jaeschke-Rogers 3 years ago
parent
commit
48d30fdc45
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      Client/Filesystem/FilesystemDiff.go

+ 4
- 3
Client/Filesystem/FilesystemDiff.go View File

@ -119,13 +119,12 @@ func (fsStatus *FilesystemStatus) parseFile(indexBucket, picksBucket *bolt.Bucke
fsStatusWG.Done()
}()
fsStatusWG.Wait()
fsStatusWG.Add(1)
pick = picksBucket.Get([]byte(p))
known = indexBucket.Get([]byte(p))
if pick != nil {
fsStatusWG.Wait()
fsStatusWG.Add(1)
fsStatus.PickedFiles = append(fsStatus.PickedFiles, p)
return
}
@ -143,6 +142,8 @@ func (fsStatus *FilesystemStatus) parseFile(indexBucket, picksBucket *bolt.Bucke
e = newFileObject.IsDifferent(knownFileObject)
if e != nil {
fsStatusWG.Wait()
fsStatusWG.Add(1)
fsStatus.ModifiedFiles = append(fsStatus.ModifiedFiles, p)
}


Loading…
Cancel
Save