This commit is contained in:
hahwu 2025-12-16 19:22:17 +08:00
parent 87668bc9ed
commit 2b17f28a32

View File

@ -101,6 +101,7 @@ func (wsConn *WSConn) ReadMsg() ([]byte, error) {
// args must not be modified by the others goroutines // args must not be modified by the others goroutines
func (wsConn *WSConn) WriteMsg(args ...[]byte) error { func (wsConn *WSConn) WriteMsg(args ...[]byte) error {
log.Debug("%d;%s", len(args[0]), string(args[0]))
wsConn.Lock() wsConn.Lock()
defer wsConn.Unlock() defer wsConn.Unlock()
if wsConn.closeFlag { if wsConn.closeFlag {