From 11ee798e7263d5b002228fd003470b973064ebb2 Mon Sep 17 00:00:00 2001 From: crusader Date: Wed, 21 Mar 2018 19:51:34 +0900 Subject: [PATCH] ing --- server/server_handlers.go | 2 +- server/socket_handlers.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/server/server_handlers.go b/server/server_handlers.go index 1299ab8..18a7762 100644 --- a/server/server_handlers.go +++ b/server/server_handlers.go @@ -67,7 +67,7 @@ func (sh *ServerHandlers) Validate() { sh.ServerHandlers.Validate() if "" == sh.pidPath { - logging.Logger().Panic(fmt.Sprintf("Server: The path of pid file must be specified")) + logging.Logger().Panicf("Server: The path of pid file must be specified") } } diff --git a/server/socket_handlers.go b/server/socket_handlers.go index cf9e51a..da68621 100644 --- a/server/socket_handlers.go +++ b/server/socket_handlers.go @@ -66,6 +66,7 @@ func (sh *SocketHandlers) Handle(soc server.Socket, stopChan <-chan struct{}, do select { case err = <-rpcDoneChan: + case <-stopChan: rpcServlet.Stop() <-rpcDoneChan