From e052f9b024a677fa44caf91237fc48047eb0cc92 Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Tue, 11 May 2021 11:08:41 +0200 Subject: [PATCH] reorder variables --- server.go | 6 +++--- serverconn.go | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/server.go b/server.go index c90b8250..304dd29e 100644 --- a/server.go +++ b/server.go @@ -117,12 +117,12 @@ type Server struct { receiverReportPeriod time.Duration closeSessionAfterNoRequestsFor time.Duration + ctx context.Context + ctxCancel func() + wg sync.WaitGroup tcpListener net.Listener udpRTPListener *serverUDPListener udpRTCPListener *serverUDPListener - wg sync.WaitGroup - ctx context.Context - ctxCancel func() sessions map[string]*ServerSession conns map[*ServerConn]struct{} exitError error diff --git a/serverconn.go b/serverconn.go index c94826ad..52e9bdf8 100644 --- a/serverconn.go +++ b/serverconn.go @@ -42,13 +42,13 @@ type readReq struct { // ServerConn is a server-side RTSP connection. type ServerConn struct { - s *Server - nconn net.Conn - ctx context.Context - ctxCancel func() - br *bufio.Reader - bw *bufio.Writer + s *Server + nconn net.Conn + ctx context.Context + ctxCancel func() + br *bufio.Reader + bw *bufio.Writer sessions map[string]*ServerSession tcpFrameSetEnabled bool // tcp tcpFrameEnabled bool // tcp