diff --git a/go/logic/server.go b/go/logic/server.go index 215e374..8f3da3c 100644 --- a/go/logic/server.go +++ b/go/logic/server.go @@ -70,6 +70,9 @@ func (this *Server) Serve() (err error) { } }() go func() { + if this.tcpListener == nil { + return + } for { conn, err := this.tcpListener.Accept() if err != nil {