Return NewServer listener start error

This commit is contained in:
Jae Kwon 2016-03-20 17:38:03 -07:00
parent 06a0ac8188
commit 8cac8600e5
1 changed files with 2 additions and 2 deletions

View File

@ -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 {