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() } - }