This commit is contained in:
crusader 2017-11-30 15:57:04 +09:00
parent b0b7d86644
commit 78aa443d2d

View File

@ -123,6 +123,7 @@ func handleServlet(s *rpcServlet) {
logging.Logger().Info(fmt.Sprintf("Servlet is started")) logging.Logger().Info(fmt.Sprintf("Servlet is started"))
defer func() { defer func() {
s.Stop()
s.doneChan <- err s.doneChan <- err
s.stopWg.Done() s.stopWg.Done()
}() }()
@ -151,7 +152,7 @@ func handleServlet(s *rpcServlet) {
if err != nil { if err != nil {
logging.Logger().Error(fmt.Sprintf("RPC Server: servlet error %v", err)) logging.Logger().Error(fmt.Sprintf("RPC Server: servlet error %v", err))
} }
logging.Logger().Info(fmt.Sprintf("Servlet is started"))
} }
func handleReader(s *rpcServlet, stopChan chan struct{}, doneChan chan error) { func handleReader(s *rpcServlet, stopChan chan struct{}, doneChan chan error) {