Woops, close the right fd
This commit is contained in:
parent
89885b9fb9
commit
e586fda5f2
@ -725,7 +725,7 @@ func archiveLegacyConfig() {
|
|||||||
l.Warnf("Cannot archive config:", err)
|
l.Warnf("Cannot archive config:", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
defer src.Close()
|
defer dst.Close()
|
||||||
|
|
||||||
l.Infoln("Archiving config.xml")
|
l.Infoln("Archiving config.xml")
|
||||||
io.Copy(dst, src)
|
io.Copy(dst, src)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user