Woops: don't consider all close()s to be failures...

This commit is contained in:
Jakob Borg 2014-08-05 09:44:35 +02:00
parent 9db75e91ac
commit 5a07f9ddee

View File

@ -675,8 +675,10 @@ func (p *puller) closeFile(f protocol.FileInfo) {
of := p.openFiles[f.Name]
err := of.file.Close()
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)