mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-14 09:14:10 +00: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]
|
of := p.openFiles[f.Name]
|
||||||
err := of.file.Close()
|
err := of.file.Close()
|
||||||
|
if err != nil {
|
||||||
p.errors++
|
p.errors++
|
||||||
l.Infof("close: error: %q / %q: %v", p.repoCfg.ID, f.Name, err)
|
l.Infof("close: error: %q / %q: %v", p.repoCfg.ID, f.Name, err)
|
||||||
|
}
|
||||||
defer os.Remove(of.temp)
|
defer os.Remove(of.temp)
|
||||||
|
|
||||||
delete(p.openFiles, f.Name)
|
delete(p.openFiles, f.Name)
|
||||||
|
Loading…
Reference in New Issue
Block a user