This commit is contained in:
crusader 2017-10-31 20:04:35 +09:00
parent e7d8d2dc1b
commit 41d269f268

View File

@ -3,6 +3,7 @@ package server
import ( import (
"fmt" "fmt"
"io" "io"
"log"
"sync" "sync"
"sync/atomic" "sync/atomic"
"time" "time"
@ -112,6 +113,7 @@ func handleClientConnection(c *client, conn io.ReadWriteCloser) {
return return
} }
log.Printf("handleClientConnection")
clientStopChan := make(chan struct{}) clientStopChan := make(chan struct{})
go c.ch.Handle(conn, clientStopChan) go c.ch.Handle(conn, clientStopChan)