mirror of
https://github.com/syncthing/syncthing.git
synced 2026-03-28 11:11:14 -04:00
Woops, close the right fd
This commit is contained in:
@@ -725,7 +725,7 @@ func archiveLegacyConfig() {
|
||||
l.Warnf("Cannot archive config:", err)
|
||||
return
|
||||
}
|
||||
defer src.Close()
|
||||
defer dst.Close()
|
||||
|
||||
l.Infoln("Archiving config.xml")
|
||||
io.Copy(dst, src)
|
||||
|
||||
Reference in New Issue
Block a user