From 83bb08530b2f35fd28fe2d7a437300bf6d151ca7 Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Wed, 9 Dec 2020 21:28:14 +0100 Subject: [PATCH] rename ServerConn.EnableFrames into ServerConn.EnableReadFrames --- serverconn.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/serverconn.go b/serverconn.go index f84e4185..3333a1e5 100644 --- a/serverconn.go +++ b/serverconn.go @@ -23,7 +23,7 @@ type ServerConn struct { br *bufio.Reader bw *bufio.Writer mutex sync.Mutex - frames bool + readFrames bool readTimeout bool } @@ -37,9 +37,9 @@ func (sc *ServerConn) NetConn() net.Conn { return sc.nconn } -// EnableFrames allows or denies receiving frames. -func (sc *ServerConn) EnableFrames(v bool) { - sc.frames = v +// EnableReadFrames allows or denies receiving frames. +func (sc *ServerConn) EnableReadFrames(v bool) { + sc.readFrames = v } // EnableReadTimeout sets or removes the timeout on incoming packets. @@ -91,7 +91,7 @@ outer: sc.nconn.SetReadDeadline(time.Time{}) } - if sc.frames { + if sc.readFrames { frame.Content = tcpFrameBuffer.Next() what, err := base.ReadInterleavedFrameOrRequest(&frame, &req, sc.br) if err != nil {