Closed auth and motd files in main after they are no longer needed

This commit is contained in:
ed 2016-03-07 01:09:10 -05:00 committed by Harry Jeffery
parent 39e8eca0ef
commit 99050c7943

View File

@ -39,6 +39,7 @@ func main() {
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }
f.Close()
lines := strings.Split(string(data[:size]), "\n") lines := strings.Split(string(data[:size]), "\n")
for _, line := range lines { for _, line := range lines {
@ -65,6 +66,7 @@ func main() {
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }
f.Close()
server.motd = string(data[:size]) server.motd = string(data[:size])
} }