From 8cac8600e59d46f58a03ca2e25ad6de143b819ed Mon Sep 17 00:00:00 2001 From: Jae Kwon Date: Sun, 20 Mar 2016 17:38:03 -0700 Subject: [PATCH] Return NewServer listener start error --- server/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/server.go b/server/server.go index edc65989b..cf8cf3389 100644 --- a/server/server.go +++ b/server/server.go @@ -35,8 +35,8 @@ func NewServer(protoAddr string, app types.Application) (*Server, error) { app: app, } s.QuitService = *NewQuitService(nil, "TMSPServer", s) - s.Start() // Just start it - return s, nil + _, err := s.Start() // Just start it + return s, err } func (s *Server) OnStart() error {