aa
This commit is contained in:
@@ -1971,7 +1971,6 @@ var (
|
||||
func connHandler(c net.Conn) {
|
||||
fmt.Println("Please input data...")
|
||||
go func() {
|
||||
for {
|
||||
s := <-textChan
|
||||
//写入数据
|
||||
n, err := c.Write([]byte(s))
|
||||
@@ -1979,7 +1978,6 @@ func connHandler(c net.Conn) {
|
||||
fmt.Println("Write err:", err, n)
|
||||
return
|
||||
}
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user