diff --git a/socket.go b/socket.go index 5358a42..f7b11d5 100644 --- a/socket.go +++ b/socket.go @@ -101,8 +101,8 @@ func (sc *SocketConn) Close() error { if sc.wc != nil { err = sc.wc.Close() } - releaseSocketConn(sc) sc.s.sc = nil + releaseSocketConn(sc) return err }