Delay server.Run until everything is setup
This commit is contained in:
parent
99050c7943
commit
e289ba93eb
4
main.go
4
main.go
@ -71,8 +71,6 @@ func main() {
|
|||||||
server.motd = string(data[:size])
|
server.motd = string(data[:size])
|
||||||
}
|
}
|
||||||
|
|
||||||
go server.Run()
|
|
||||||
|
|
||||||
tlsConfig := new(tls.Config)
|
tlsConfig := new(tls.Config)
|
||||||
|
|
||||||
tlsConfig.PreferServerCipherSuites = true
|
tlsConfig.PreferServerCipherSuites = true
|
||||||
@ -105,6 +103,8 @@ func main() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
go server.Run()
|
||||||
|
|
||||||
log.Printf("Listening on %s", *ircAddress)
|
log.Printf("Listening on %s", *ircAddress)
|
||||||
|
|
||||||
for {
|
for {
|
||||||
|
Loading…
Reference in New Issue
Block a user