Commit a87051bd authored by Christopher Schinnerl's avatar Christopher Schinnerl

fix deadlock

parent f9217d7a
Pipeline #57434488 passed with stages
in 24 minutes and 10 seconds
......@@ -363,10 +363,7 @@ func (sfs *SiaFileSet) Exists(siaPath modules.SiaPath) bool {
// fileInfo takes the maps returned by renter.managedContractUtilityMaps for
// many files at once.
func (sfs *SiaFileSet) FileInfo(siaPath modules.SiaPath, offline map[string]bool, goodForRenew map[string]bool, contracts map[string]modules.RenterContract) (modules.FileInfo, error) {
sfs.mu.Lock()
defer sfs.mu.Unlock()
entry, err := sfs.open(siaPath)
entry, err := sfs.Open(siaPath)
if err != nil {
return modules.FileInfo{}, err
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment