mirror of
https://github.com/syncthing/syncthing.git
synced 2024-11-16 10:28:49 -07:00
Woops: don't consider all close()s to be failures...
This commit is contained in:
parent
9db75e91ac
commit
5a07f9ddee
@ -675,8 +675,10 @@ func (p *puller) closeFile(f protocol.FileInfo) {
|
||||
|
||||
of := p.openFiles[f.Name]
|
||||
err := of.file.Close()
|
||||
p.errors++
|
||||
l.Infof("close: error: %q / %q: %v", p.repoCfg.ID, f.Name, err)
|
||||
if err != nil {
|
||||
p.errors++
|
||||
l.Infof("close: error: %q / %q: %v", p.repoCfg.ID, f.Name, err)
|
||||
}
|
||||
defer os.Remove(of.temp)
|
||||
|
||||
delete(p.openFiles, f.Name)
|
||||
|
Loading…
Reference in New Issue
Block a user