From e289ba93eb930f2724e95311d21bf4271ddb8746 Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 7 Mar 2016 01:23:53 -0500 Subject: [PATCH] Delay server.Run until everything is setup --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index f660b6f..4846e6b 100644 --- a/main.go +++ b/main.go @@ -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 {