From b630f1721cae9366f59fa6348384e7cf48b64319 Mon Sep 17 00:00:00 2001 From: crusader Date: Wed, 8 Nov 2017 19:17:11 +0900 Subject: [PATCH] ing --- server.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server.go b/server.go index 72e8798..b80b809 100644 --- a/server.go +++ b/server.go @@ -154,7 +154,7 @@ func handleConnection(s *server, soc *Socket) { clientStopChan := make(chan struct{}) handleDoneChan := make(chan struct{}) - go handler.Handle(soc, clientStopChan, handleDoneChan) + go soc.sh.Handle(soc, clientStopChan, handleDoneChan) select { case <-s.stopChan: @@ -166,5 +166,4 @@ func handleConnection(s *server, soc *Socket) { logging.Logger.Debug(fmt.Sprintf("Server: Client[%s] is disconnected.", soc.RemoteAddr())) soc.Close() } - }