Delay server.Run until everything is setup

This commit is contained in:
ed 2016-03-07 01:23:53 -05:00 committed by Harry Jeffery
parent 99050c7943
commit e289ba93eb

View File

@ -71,8 +71,6 @@ func main() {
server.motd = string(data[:size])
}
go server.Run()
tlsConfig := new(tls.Config)
tlsConfig.PreferServerCipherSuites = true
@ -105,6 +103,8 @@ func main() {
return
}
go server.Run()
log.Printf("Listening on %s", *ircAddress)
for {