This commit is contained in:
crusader 2017-11-08 19:17:11 +09:00
parent b5a6a7280c
commit b630f1721c

View File

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