This commit is contained in:
crusader 2018-03-21 19:51:34 +09:00
parent f9b9c0ac97
commit 11ee798e72
2 changed files with 2 additions and 1 deletions

View File

@ -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")
}
}

View File

@ -66,6 +66,7 @@ func (sh *SocketHandlers) Handle(soc server.Socket, stopChan <-chan struct{}, do
select {
case err = <-rpcDoneChan:
case <-stopChan:
rpcServlet.Stop()
<-rpcDoneChan