From 040cd18db384b4e2db33612110da859eb2cd0428 Mon Sep 17 00:00:00 2001 From: Saxon Date: Wed, 8 May 2019 13:48:12 +0930 Subject: [PATCH] protocol/rtcp/client.go: moved err chan to bottom of fields list. --- protocol/rtcp/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocol/rtcp/client.go b/protocol/rtcp/client.go index c9ec9b93..12c2795b 100644 --- a/protocol/rtcp/client.go +++ b/protocol/rtcp/client.go @@ -54,8 +54,6 @@ type log func(lvl int8, msg string, args ...interface{}) // Client is an RTCP Client that will handle receiving SenderReports from a server // and sending out ReceiverReports. type Client struct { - err chan error // Client will send any errors through this chan. Can be accessed by Err(). - cAddr *net.UDPAddr // Address of client. sAddr *net.UDPAddr // Address of RTSP server. name string // Name of the client for source description purposes. @@ -71,6 +69,8 @@ type Client struct { quitSend chan struct{} // Channel used to communicate quit signal to send routine. quitRecv chan struct{} // Channel used to communicate quit signal to recv routine. log // Used to log any messages. + + err chan error // Client will send any errors through this chan. Can be accessed by Err(). } // NewClient returns a pointer to a new Client.