From 78aa443d2da800027eb7277ae2c9c4b8298317c8 Mon Sep 17 00:00:00 2001 From: crusader Date: Thu, 30 Nov 2017 15:57:04 +0900 Subject: [PATCH] ing --- servlet.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/servlet.go b/servlet.go index fb7970b..b295070 100644 --- a/servlet.go +++ b/servlet.go @@ -123,6 +123,7 @@ func handleServlet(s *rpcServlet) { logging.Logger().Info(fmt.Sprintf("Servlet is started")) defer func() { + s.Stop() s.doneChan <- err s.stopWg.Done() }() @@ -151,7 +152,7 @@ func handleServlet(s *rpcServlet) { if err != nil { 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) {