还原
This commit is contained in:
parent
9215192ed4
commit
6211e7fa80
@ -2,7 +2,6 @@ package network
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"net"
|
||||
"sync"
|
||||
|
||||
@ -102,7 +101,6 @@ func (wsConn *WSConn) ReadMsg() ([]byte, error) {
|
||||
|
||||
// args must not be modified by the others goroutines
|
||||
func (wsConn *WSConn) WriteMsg(args ...[]byte) error {
|
||||
fmt.Printf("%d;%s", len(args[1]), string(args[1]))
|
||||
wsConn.Lock()
|
||||
defer wsConn.Unlock()
|
||||
if wsConn.closeFlag {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user