This commit is contained in:
crusader 2017-11-30 16:00:25 +09:00
parent 78aa443d2d
commit 888569749a

View File

@ -123,9 +123,9 @@ 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()
s.Stop()
}() }()
subStopChan := make(chan struct{}) subStopChan := make(chan struct{})